mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-02-23 03:05:26 +00:00
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.
This commit is contained in:
@@ -107,7 +107,7 @@ class ConversationListSearchAdapter extends RecyclerView.Adapter<Conversation
|
||||
|
||||
void updateResults(@NonNull SearchResult result) {
|
||||
this.searchResult = result;
|
||||
notifyItemRangeChanged(0, getItemCount());
|
||||
notifyDataSetChanged();
|
||||
}
|
||||
|
||||
@Nullable
|
||||
|
||||
Reference in New Issue
Block a user