Disable suggestion list animations: not meaningful

The animations were just in the way and did not help in choosing items, since the suggestion items keep changing too much.
pull/8972/head
Stypox 2022-09-14 14:03:15 +02:00
rodzic fbf5549182
commit 1f57c87859
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4BDF1B40A49FDD23
1 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -340,6 +340,8 @@ public class SearchFragment extends BaseListFragment<SearchInfo, ListExtractor.I
super.initViews(rootView, savedInstanceState);
searchBinding.suggestionsList.setAdapter(suggestionListAdapter);
// animations are just strange and useless, since the suggestions keep changing too much
searchBinding.suggestionsList.setItemAnimator(null);
new ItemTouchHelper(new ItemTouchHelper.Callback() {
@Override
public int getMovementFlags(@NonNull final RecyclerView recyclerView,