1
0
mirror of https://github.com/KokaKiwi/BarInsta synced 2024-11-22 22:57:29 +00:00

Use TextUtils.join as String.join requires API level 26

This commit is contained in:
Ammar Githam 2020-08-16 06:14:11 +09:00
parent 0023c56688
commit a0402c8bf3

View File

@ -4,6 +4,7 @@ import android.content.Intent;
import android.net.Uri; import android.net.Uri;
import android.os.AsyncTask; import android.os.AsyncTask;
import android.os.Bundle; import android.os.Bundle;
import android.text.TextUtils;
import android.util.Log; import android.util.Log;
import android.view.View; import android.view.View;
import android.widget.Toast; import android.widget.Toast;
@ -74,7 +75,7 @@ public final class DirectMessageThread extends BaseLanguageActivity {
for (int i = 0; i < users.length; ++i) { for (int i = 0; i < users.length; ++i) {
users[i] = result.getUsers()[i].getUsername(); users[i] = result.getUsers()[i].getUsername();
} }
dmsBinding.toolbar.toolbar.setSubtitle(String.join(", ", users)); dmsBinding.toolbar.toolbar.setSubtitle(TextUtils.join(", ", users));
final int oldSize = directItemModels.size(); final int oldSize = directItemModels.size();
final List<DirectItemModel> itemModels = Arrays.asList(result.getItems()); final List<DirectItemModel> itemModels = Arrays.asList(result.getItems());