Defer search init

pull/207/head
M66B 3 years ago
parent 044723170e
commit 3d010f1c91

@ -5881,6 +5881,7 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
@Override @Override
public void onLoading() { public void onLoading() {
loading = true; loading = true;
initialized = true;
updateListState("Loading", SimpleTask.getCount(), adapter == null ? 0 : adapter.getItemCount()); updateListState("Loading", SimpleTask.getCount(), adapter == null ? 0 : adapter.getItemCount());
} }
@ -5948,7 +5949,8 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
updateExpanded(); updateExpanded();
initialized = true; if (viewType != AdapterMessage.ViewType.SEARCH)
initialized = true;
updateListState("Observed", SimpleTask.getCount(), messages.size()); updateListState("Observed", SimpleTask.getCount(), messages.size());
grpReady.setVisibility(View.VISIBLE); grpReady.setVisibility(View.VISIBLE);

Loading…
Cancel
Save