fix refreshing notifications screen when there are no notifications (#2583)
This commit is contained in:
parent
cbc5077b1f
commit
fd568aedba
1 changed files with 2 additions and 2 deletions
|
@ -963,10 +963,10 @@ public class NotificationsFragment extends SFragment implements
|
||||||
if (notifications.size() == 0 && adapter.getItemCount() == 0) {
|
if (notifications.size() == 0 && adapter.getItemCount() == 0) {
|
||||||
this.statusView.setVisibility(View.VISIBLE);
|
this.statusView.setVisibility(View.VISIBLE);
|
||||||
this.statusView.setup(R.drawable.elephant_friend_empty, R.string.message_empty, null);
|
this.statusView.setup(R.drawable.elephant_friend_empty, R.string.message_empty, null);
|
||||||
} else {
|
|
||||||
swipeRefreshLayout.setEnabled(true);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
updateFilterVisibility();
|
updateFilterVisibility();
|
||||||
|
swipeRefreshLayout.setEnabled(true);
|
||||||
swipeRefreshLayout.setRefreshing(false);
|
swipeRefreshLayout.setRefreshing(false);
|
||||||
progressBar.setVisibility(View.GONE);
|
progressBar.setVisibility(View.GONE);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue