From d99cf8b76dbe80b536cdc2dec86c934bf7a10748 Mon Sep 17 00:00:00 2001 From: Michael Jurka Date: Sun, 16 Jan 2011 16:53:18 -0800 Subject: [PATCH] Fix bug: rotating screen in All Apps mode would show blank workspace --- src/com/android/launcher2/Launcher.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/android/launcher2/Launcher.java b/src/com/android/launcher2/Launcher.java index 2281c84774..72760239a3 100644 --- a/src/com/android/launcher2/Launcher.java +++ b/src/com/android/launcher2/Launcher.java @@ -2681,7 +2681,6 @@ public final class Launcher extends Activity if (toAllApps) { mWorkspace.shrink(ShrinkState.BOTTOM_HIDDEN, animated); - toView.setAlpha(0f); } else { mWorkspace.shrink(ShrinkState.TOP, animated); } @@ -2694,6 +2693,7 @@ public final class Launcher extends Activity scaleAnim.setDuration(duration); if (toAllApps) { + toView.setAlpha(0f); ObjectAnimator alphaAnim = ObjectAnimator.ofPropertyValuesHolder(toView, PropertyValuesHolder.ofFloat("alpha", 1.0f)); alphaAnim.setInterpolator(new DecelerateInterpolator(1.5f));