From 5131c44e93ba071afd709b520ebacc48e52b46b4 Mon Sep 17 00:00:00 2001 From: Conny Duck Date: Sun, 2 Sep 2018 13:23:36 +0200 Subject: [PATCH] fix empty message view showing/hiding at the wrong times --- .../com/keylesspalace/tusky/fragment/TimelineFragment.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/src/main/java/com/keylesspalace/tusky/fragment/TimelineFragment.java b/app/src/main/java/com/keylesspalace/tusky/fragment/TimelineFragment.java index dc8644d69..1ea0e2564 100644 --- a/app/src/main/java/com/keylesspalace/tusky/fragment/TimelineFragment.java +++ b/app/src/main/java/com/keylesspalace/tusky/fragment/TimelineFragment.java @@ -300,6 +300,9 @@ public class TimelineFragment extends SFragment implements break; } } + if(statuses.size() == 0) { + nothingMessageView.setVisibility(View.VISIBLE); + } } @Override @@ -820,6 +823,8 @@ public class TimelineFragment extends SFragment implements swipeRefreshLayout.setRefreshing(false); if (this.statuses.size() == 0) { nothingMessageView.setVisibility(View.VISIBLE); + } else { + nothingMessageView.setVisibility(View.GONE); } }