This commit is contained in:
tom79 2020-03-27 19:03:12 +01:00
parent 0269bfce3d
commit ed351974af
1 changed files with 1 additions and 1 deletions

View File

@ -132,7 +132,7 @@ public class SearchListAdapter extends BaseAdapter {
else
holder.status_search_title.setVisibility(View.GONE);
final float scale = context.getResources().getDisplayMetrics().density;
if (!status.getIn_reply_to_account_id().equals("null") || !status.getIn_reply_to_id().equals("null")) {
if ((status.getIn_reply_to_account_id() !=null && !status.getIn_reply_to_account_id().equals("null")) || (status.getIn_reply_to_id() != null && !status.getIn_reply_to_id().equals("null"))) {
Drawable img = ContextCompat.getDrawable(context, R.drawable.ic_reply);
assert img != null;
img.setBounds(0, 0, (int) (20 * scale + 0.5f), (int) (15 * scale + 0.5f));