Skip to content

Commit 1f57c87

Browse files
committed
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.
1 parent fbf5549 commit 1f57c87

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

app/src/main/java/org/schabi/newpipe/fragments/list/search/SearchFragment.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,8 @@ protected void initViews(final View rootView, final Bundle savedInstanceState) {
340340
super.initViews(rootView, savedInstanceState);
341341

342342
searchBinding.suggestionsList.setAdapter(suggestionListAdapter);
343+
// animations are just strange and useless, since the suggestions keep changing too much
344+
searchBinding.suggestionsList.setItemAnimator(null);
343345
new ItemTouchHelper(new ItemTouchHelper.Callback() {
344346
@Override
345347
public int getMovementFlags(@NonNull final RecyclerView recyclerView,

0 commit comments

Comments
 (0)