diff options
author | stom79 <tschneider.ac@gmail.com> | 2017-12-17 13:56:38 +0100 |
---|---|---|
committer | stom79 <tschneider.ac@gmail.com> | 2017-12-17 13:56:38 +0100 |
commit | dc4636ce017a84f7fd4720b651783dbe29e825b3 (patch) | |
tree | 33c62519225d285dfe49c80f4dc5b658456e5b3a /app/src/main/java/fr/gouv/etalab/mastodon/drawers/SearchListAdapter.java | |
parent | a328bcb7f603d7b186188feae14e4100b277131c (diff) |
Some code cleaning
Diffstat (limited to 'app/src/main/java/fr/gouv/etalab/mastodon/drawers/SearchListAdapter.java')
-rw-r--r-- | app/src/main/java/fr/gouv/etalab/mastodon/drawers/SearchListAdapter.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/src/main/java/fr/gouv/etalab/mastodon/drawers/SearchListAdapter.java b/app/src/main/java/fr/gouv/etalab/mastodon/drawers/SearchListAdapter.java index 32cb26430..221c7eecf 100644 --- a/app/src/main/java/fr/gouv/etalab/mastodon/drawers/SearchListAdapter.java +++ b/app/src/main/java/fr/gouv/etalab/mastodon/drawers/SearchListAdapter.java @@ -136,10 +136,12 @@ public class SearchListAdapter extends BaseAdapter { final float scale = context.getResources().getDisplayMetrics().density; if( !status.getIn_reply_to_account_id().equals("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)); holder.status_account_displayname.setCompoundDrawables( img, null, null, null); }else if( status.getReblog() != null){ Drawable img = ContextCompat.getDrawable(context, R.drawable.ic_repeat); + assert img != null; img.setBounds(0,0,(int) (20 * scale + 0.5f),(int) (15 * scale + 0.5f)); holder.status_account_displayname.setCompoundDrawables( img, null, null, null); }else{ |