summaryrefslogtreecommitdiffstats
path: root/app/src
diff options
context:
space:
mode:
authortom79 <tschneider.ac@gmail.com>2020-03-27 19:03:12 +0100
committertom79 <tschneider.ac@gmail.com>2020-03-27 19:03:12 +0100
commited351974af7ca0f577a71d750e46167112cb90b4 (patch)
tree7df3434a4900cc8e55d0fcc39546f5566ec88f51 /app/src
parent0269bfce3d342f60d1d9c9f29eac02e4f37eba06 (diff)
Fix issue #417
Diffstat (limited to 'app/src')
-rw-r--r--app/src/main/java/app/fedilab/android/drawers/SearchListAdapter.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/java/app/fedilab/android/drawers/SearchListAdapter.java b/app/src/main/java/app/fedilab/android/drawers/SearchListAdapter.java
index 047b15493..33708e208 100644
--- a/app/src/main/java/app/fedilab/android/drawers/SearchListAdapter.java
+++ b/app/src/main/java/app/fedilab/android/drawers/SearchListAdapter.java
@@ -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));