From 59874c498c838e4f9d49501e9edb990d40b6020f Mon Sep 17 00:00:00 2001 From: tom79 Date: Wed, 11 Oct 2017 17:08:44 +0200 Subject: [PATCH] Fixes an error when filtering answers --- .../fr/gouv/etalab/mastodon/drawers/StatusListAdapter.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/fr/gouv/etalab/mastodon/drawers/StatusListAdapter.java b/app/src/main/java/fr/gouv/etalab/mastodon/drawers/StatusListAdapter.java index cafce3d1b..292415ef5 100644 --- a/app/src/main/java/fr/gouv/etalab/mastodon/drawers/StatusListAdapter.java +++ b/app/src/main/java/fr/gouv/etalab/mastodon/drawers/StatusListAdapter.java @@ -165,9 +165,9 @@ public class StatusListAdapter extends BaseAdapter implements OnPostActionInterf SharedPreferences sharedpreferences = context.getSharedPreferences(Helper.APP_PREFS, Context.MODE_PRIVATE); if (status.getReblog() != null && !sharedpreferences.getBoolean(Helper.SET_SHOW_BOOSTS, true)) return HIDDEN_STATUS; - else 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")) && !sharedpreferences.getBoolean(Helper.SET_SHOW_REPLIES, true)) + else if (status.getIn_reply_to_id() != null && !status.getIn_reply_to_id().equals("null") && !sharedpreferences.getBoolean(Helper.SET_SHOW_REPLIES, true)) { return HIDDEN_STATUS; - else + }else return DISPLAYED_STATUS; }else { return DISPLAYED_STATUS;