Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7dfabaa0 authored by Jon Miranda's avatar Jon Miranda
Browse files

Fix bug where all apps items fade in.

Removes all Add/Change/Move/Remove animations by
clearing the AllAppsRecyclerView ItemAnimator.

Bug: 64675794
Change-Id: I41f975ab6be4bf48c483828ea6f109382a8a9320
parent 492617f4
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -224,8 +224,8 @@ public class AllAppsContainerView extends BaseContainerView implements DragSourc
        mAppsRecyclerView.setLayoutManager(mLayoutManager);
        mAppsRecyclerView.setAdapter(mAdapter);
        mAppsRecyclerView.setHasFixedSize(true);
        // Removes the animation that can occur when updating the predicted apps in place.
        mAppsRecyclerView.getItemAnimator().setChangeDuration(0);
        // No animations will occur when changes occur to the items in this RecyclerView.
        mAppsRecyclerView.setItemAnimator(null);
        if (FeatureFlags.LAUNCHER3_PHYSICS) {
            mAppsRecyclerView.setSpringAnimationHandler(mSpringAnimationHandler);
        }