mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-02 19:10:11 +01:00
Fixed invalid "no messages"
This commit is contained in:
@@ -1733,9 +1733,11 @@ public class FragmentMessages extends FragmentBase {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onLoaded(boolean empty) {
|
||||
public void onLoaded() {
|
||||
RecyclerView.Adapter adapter = rvMessage.getAdapter();
|
||||
int items = (adapter == null ? 0 : adapter.getItemCount());
|
||||
tvNoEmail.setVisibility(items == 0 ? View.VISIBLE : View.GONE);
|
||||
pbWait.setVisibility(View.GONE);
|
||||
tvNoEmail.setVisibility(empty ? View.VISIBLE : View.GONE);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user