NotificationsFragment: always show appbar, even if there is no notifications

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-28 01:12:25 +03:00
parent c673be3486
commit ae58f59792

View File

@ -284,7 +284,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