Fix about page

This commit is contained in:
tom79 2019-09-25 16:01:56 +02:00
parent 208a5b8dde
commit f28d6228d0
1 changed files with 3 additions and 3 deletions

View File

@ -112,7 +112,7 @@ public class AccountSearchDevAdapter extends BaseAdapter implements OnPostAction
}
if (!account.getSocial().contains("OPENCOLLECTIVE")) {
if (account.getSocial() == null || !account.getSocial().contains("OPENCOLLECTIVE")) {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
holder.account_dn.setText(Helper.shortnameToUnicode(account.getDisplay_name(), true));
holder.account_un.setText(String.format("@%s", account.getAcct()));
@ -137,14 +137,14 @@ public class AccountSearchDevAdapter extends BaseAdapter implements OnPostAction
Glide.with(holder.account_pp.getContext())
.load(account.getAvatar())
.into(holder.account_pp);
} else if (account.getSocial().contains("OPENCOLLECTIVE")) {
} else if (account.getSocial() != null && account.getSocial().contains("OPENCOLLECTIVE")) {
Glide.with(holder.account_pp.getContext())
.load(R.drawable.missing)
.into(holder.account_pp);
}
if (!account.getSocial().contains("OPENCOLLECTIVE")) {
if (account.getSocial() == null || !account.getSocial().contains("OPENCOLLECTIVE")) {
holder.account_follow.setOnClickListener(new View.OnClickListener() {
@Override