Fixed crash

pull/206/head
M66B 3 years ago
parent 8fd0ceee47
commit 8917609d0e

@ -5192,13 +5192,13 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
@Override
public void onLoading() {
loading = true;
updateListState("Loading", SimpleTask.getCount(), adapter.getItemCount());
updateListState("Loading", SimpleTask.getCount(), adapter == null ? 0 : adapter.getItemCount());
}
@Override
public void onLoaded(int found) {
loading = false;
updateListState("Loaded found=" + found, SimpleTask.getCount(), adapter.getItemCount() + found);
updateListState("Loaded found=" + found, SimpleTask.getCount(), adapter == null ? 0 : adapter.getItemCount() + found);
}
@Override

Loading…
Cancel
Save