Speed up All Apps -> Workspace transition
- use HW layers on Views whose alpha is faded - don't run animation end code until the entire launcher transition is finished - be more aggressive about making workspace pages visible after an animation, potential fix for Bug #5867739 Change-Id: I52a088e551c1636a67725629640286b885070f32
This commit is contained in:
1 parent
c0f21e1d3c
commit
9433fa7eba
5 files changed
+87
-75
No files matched your search
@@ -347,9 +347,8 @@ public class AppsCustomizeTabHost extends TabHost implements LauncherTransitiona
|
||||
|
||||
/* LauncherTransitionable overrides */
|
||||
@Override
|
||||
public void onLauncherTransitionStart(Launcher l, Animator animation, boolean toWorkspace) {
|
||||
public void onLauncherTransitionStart(Launcher l, boolean animated, boolean toWorkspace) {
|
||||
mInTransition = true;
|
||||
boolean animated = (animation != null);
|
||||
|
||||
mContent.setVisibility(VISIBLE);
|
||||
|
||||
@@ -372,9 +371,9 @@ public class AppsCustomizeTabHost extends TabHost implements LauncherTransitiona
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onLauncherTransitionEnd(Launcher l, Animator animation, boolean toWorkspace) {
|
||||
public void onLauncherTransitionEnd(Launcher l, boolean animated, boolean toWorkspace) {
|
||||
mInTransition = false;
|
||||
if (animation != null) {
|
||||
if (animated) {
|
||||
setLayerType(LAYER_TYPE_NONE, null);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user