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