Use notifyDataSetChanged for potentially structural modification.

This has the potential to change the structure of the result set
displayed in the recycler view. Thus the functions that tell it the
structure changed need to be called. For an immediate fix, changing
this back to notifyDataSetChanged seems to resolve the crash.
fork-5.53.8
Ehren Kret 2022-03-28 18:22:02 -05:00 zatwierdzone przez GitHub
rodzic 7611c64493
commit ba394e1021
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -107,7 +107,7 @@ class ConversationListSearchAdapter extends RecyclerView.Adapter<Conversation
void updateResults(@NonNull SearchResult result) {
this.searchResult = result;
notifyItemRangeChanged(0, getItemCount());
notifyDataSetChanged();
}
@Nullable