From 61d9e78f23efcf43be1945d4233780ac89db99d9 Mon Sep 17 00:00:00 2001 From: Winson Date: Fri, 22 Jul 2016 13:38:31 -0700 Subject: Ensure we still build the hw layers when pulling up all apps. Bug: 30310330 Change-Id: I0d9f2fe01230bdb333c098b5515fc196ac2da2dc --- .../WorkspaceStateTransitionAnimation.java | 26 +++++++--------------- 1 file changed, 8 insertions(+), 18 deletions(-) (limited to 'src/com/android/launcher3/WorkspaceStateTransitionAnimation.java') diff --git a/src/com/android/launcher3/WorkspaceStateTransitionAnimation.java b/src/com/android/launcher3/WorkspaceStateTransitionAnimation.java index c2631b07f..598ba741a 100644 --- a/src/com/android/launcher3/WorkspaceStateTransitionAnimation.java +++ b/src/com/android/launcher3/WorkspaceStateTransitionAnimation.java @@ -394,24 +394,14 @@ public class WorkspaceStateTransitionAnimation { overviewPanelAlpha.addListener(new AlphaUpdateListener(overviewPanel, accessibilityEnabled)); - // For animation optimations, we may need to provide the Launcher transition - // with a set of views on which to force build layers in certain scenarios. - overviewPanel.setLayerType(View.LAYER_TYPE_HARDWARE, null); - qsbContainer.setLayerType(View.LAYER_TYPE_HARDWARE, null); - if (layerViews != null) { - // If layerViews is not null, we add these views, and indicate that - // the caller can manage layer state. - layerViews.put(overviewPanel, LauncherStateTransitionAnimation.BUILD_AND_SET_LAYER); - layerViews.put(qsbContainer, LauncherStateTransitionAnimation.BUILD_AND_SET_LAYER); - - layerViews.put(mLauncher.getHotseat(), - LauncherStateTransitionAnimation.BUILD_AND_SET_LAYER); - layerViews.put(mWorkspace.getPageIndicator(), - LauncherStateTransitionAnimation.BUILD_AND_SET_LAYER); - } else { - // Otherwise let the animator handle layer management. - overviewPanelAlpha.withLayer(); - } + // For animation optimization, we may need to provide the Launcher transition + // with a set of views on which to force build and manage layers in certain scenarios. + layerViews.put(overviewPanel, LauncherStateTransitionAnimation.BUILD_AND_SET_LAYER); + layerViews.put(qsbContainer, LauncherStateTransitionAnimation.BUILD_AND_SET_LAYER); + layerViews.put(mLauncher.getHotseat(), + LauncherStateTransitionAnimation.BUILD_AND_SET_LAYER); + layerViews.put(mWorkspace.getPageIndicator(), + LauncherStateTransitionAnimation.BUILD_AND_SET_LAYER); if (states.workspaceToOverview) { hotseatAlpha.setInterpolator(new DecelerateInterpolator(2)); -- cgit v1.2.3