We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e6391a8 commit fbf5549Copy full SHA for fbf5549
1 file changed
app/src/main/java/org/schabi/newpipe/fragments/list/search/SuggestionListAdapter.java
@@ -80,13 +80,14 @@ private static class SuggestionItemCallback extends DiffUtil.ItemCallback<Sugges
80
@Override
81
public boolean areItemsTheSame(@NonNull final SuggestionItem oldItem,
82
@NonNull final SuggestionItem newItem) {
83
- return oldItem.query.equals(newItem.query);
+ return oldItem.fromHistory == newItem.fromHistory
84
+ && oldItem.query.equals(newItem.query);
85
}
86
87
88
public boolean areContentsTheSame(@NonNull final SuggestionItem oldItem,
89
- return oldItem.equals(newItem);
90
+ return true; // items' contents never change; the list of items themselves does
91
92
93
0 commit comments