fix empty message view showing/hiding at the wrong times

This commit is contained in:
Conny Duck 2018-09-02 13:23:36 +02:00
parent 2c679a4761
commit 73934e4652

View File

@ -300,6 +300,9 @@ public class TimelineFragment extends SFragment implements
break;
}
}
if(statuses.size() == 0) {
nothingMessageView.setVisibility(View.VISIBLE);
}
}
@Override
@ -820,6 +823,8 @@ public class TimelineFragment extends SFragment implements
swipeRefreshLayout.setRefreshing(false);
if (this.statuses.size() == 0) {
nothingMessageView.setVisibility(View.VISIBLE);
} else {
nothingMessageView.setVisibility(View.GONE);
}
}