summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJon Miranda <jonmiranda@google.com>2017-08-15 10:31:17 -0700
committerJon Miranda <jonmiranda@google.com>2017-08-15 10:33:54 -0700
commit7dfabaa02bdcf7d9307e11fa490c097bdc990025 (patch)
tree6dad76c18f34280251eaab6a8dfd61886abdee0e
parent492617f4c48155c2efc4f07464c8f86625590367 (diff)
downloadandroid_packages_apps_Trebuchet-7dfabaa02bdcf7d9307e11fa490c097bdc990025.tar.gz
android_packages_apps_Trebuchet-7dfabaa02bdcf7d9307e11fa490c097bdc990025.tar.bz2
android_packages_apps_Trebuchet-7dfabaa02bdcf7d9307e11fa490c097bdc990025.zip
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
-rw-r--r--src/com/android/launcher3/allapps/AllAppsContainerView.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/launcher3/allapps/AllAppsContainerView.java b/src/com/android/launcher3/allapps/AllAppsContainerView.java
index ede3bea72..828a347df 100644
--- a/src/com/android/launcher3/allapps/AllAppsContainerView.java
+++ b/src/com/android/launcher3/allapps/AllAppsContainerView.java
@@ -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);
}