diff options
author | Jon Miranda <jonmiranda@google.com> | 2017-07-28 11:56:47 -0700 |
---|---|---|
committer | Jon Miranda <jonmiranda@google.com> | 2017-08-02 12:41:33 -0700 |
commit | 7f522a25c39ceb35aa009f029abe74497f03c403 (patch) | |
tree | efc3f8542542878bc58ee8abd346451c3ff00bb7 /src/com/android/launcher3/LauncherStateTransitionAnimation.java | |
parent | 807c593256f620e3506a442a3b5a2972ba4afeae (diff) | |
download | android_packages_apps_Trebuchet-7f522a25c39ceb35aa009f029abe74497f03c403.tar.gz android_packages_apps_Trebuchet-7f522a25c39ceb35aa009f029abe74497f03c403.tar.bz2 android_packages_apps_Trebuchet-7f522a25c39ceb35aa009f029abe74497f03c403.zip |
Optimizations to reduce all apps jank.
* Since adding springs to the apps in All Apps, it is no longer
efficient to build a hardware layer for it.
* Pre-uploads bitmaps to RenderThread.
* Only add overview animations if we are transitioning to/from it.
Bug: 63711551
Change-Id: I948267598e95ec59dc156acb9abe6b5b789110c0
Diffstat (limited to 'src/com/android/launcher3/LauncherStateTransitionAnimation.java')
-rw-r--r-- | src/com/android/launcher3/LauncherStateTransitionAnimation.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/com/android/launcher3/LauncherStateTransitionAnimation.java b/src/com/android/launcher3/LauncherStateTransitionAnimation.java index 44b9704f2..9ff61ec98 100644 --- a/src/com/android/launcher3/LauncherStateTransitionAnimation.java +++ b/src/com/android/launcher3/LauncherStateTransitionAnimation.java @@ -338,8 +338,10 @@ public class LauncherStateTransitionAnimation { toView.post(new StartAnimRunnable(animation, toView)); mCurrentAnimation = animation; } else if (animType == PULLUP) { - // We are animating the content view alpha, so ensure we have a layer for it - layerViews.addView(contentView); + if (!FeatureFlags.LAUNCHER3_PHYSICS) { + // We are animating the content view alpha, so ensure we have a layer for it. + layerViews.addView(contentView); + } animation.addListener(new AnimatorListenerAdapter() { @Override |