am d99cf8b7: Fix bug: rotating screen in All Apps mode would show blank workspace

* commit 'd99cf8b76dbe80b536cdc2dec86c934bf7a10748':
  Fix bug: rotating screen in All Apps mode would show blank workspace
This commit is contained in:
Michael Jurka
2011-01-16 17:01:26 -08:00
committed by Android Git Automerger
+1 -1
View File
@@ -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));