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.
This commit is contained in:
Alibek Omarov 2020-05-30 11:10:47 +03:00 committed by GitHub
parent 84ad1807c8
commit 5b187bcb5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -288,7 +288,7 @@ public class NotificationsFragment extends SFragment implements
private void updateFilterVisibility() { private void updateFilterVisibility() {
CoordinatorLayout.LayoutParams params = CoordinatorLayout.LayoutParams params =
(CoordinatorLayout.LayoutParams) swipeRefreshLayout.getLayoutParams(); (CoordinatorLayout.LayoutParams) swipeRefreshLayout.getLayoutParams();
if (showNotificationsFilter && !showingError && !notifications.isEmpty()) { if (showNotificationsFilter && !showingError) {
appBarOptions.setExpanded(true, false); appBarOptions.setExpanded(true, false);
appBarOptions.setVisibility(View.VISIBLE); appBarOptions.setVisibility(View.VISIBLE);
//Set content behaviour to hide filter on scroll //Set content behaviour to hide filter on scroll