From 5b187bcb5e6e3742947e85284b49fde4d422f323 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Sat, 30 May 2020 11:10:47 +0300 Subject: [PATCH] NotificationsFragment: show appbar if there is no notifications (#1810) Thus, if user accidentally will filter everything, they will be able to return to initial state. --- .../com/keylesspalace/tusky/fragment/NotificationsFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/keylesspalace/tusky/fragment/NotificationsFragment.java b/app/src/main/java/com/keylesspalace/tusky/fragment/NotificationsFragment.java index 1d5f1b7b..b94249ef 100644 --- a/app/src/main/java/com/keylesspalace/tusky/fragment/NotificationsFragment.java +++ b/app/src/main/java/com/keylesspalace/tusky/fragment/NotificationsFragment.java @@ -288,7 +288,7 @@ public class NotificationsFragment extends SFragment implements private void updateFilterVisibility() { CoordinatorLayout.LayoutParams params = (CoordinatorLayout.LayoutParams) swipeRefreshLayout.getLayoutParams(); - if (showNotificationsFilter && !showingError && !notifications.isEmpty()) { + if (showNotificationsFilter && !showingError) { appBarOptions.setExpanded(true, false); appBarOptions.setVisibility(View.VISIBLE); //Set content behaviour to hide filter on scroll