diff options
author | Michael Jurka <mikejurka@google.com> | 2011-03-09 15:47:30 -0800 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2011-03-09 15:47:30 -0800 |
commit | 72a174de20d06c8592b4de5bda4b13a96d05be7a (patch) | |
tree | 4a7fd5caf3c4cf169349e2a0e338598867ed2730 | |
parent | 92c1faec0bc4a3e67bf7984bf4d14d4317ac0b7a (diff) | |
parent | cc6c8848e69f7d758da1ac8fd73897db57908ef3 (diff) | |
download | android_packages_apps_Trebuchet-72a174de20d06c8592b4de5bda4b13a96d05be7a.tar.gz android_packages_apps_Trebuchet-72a174de20d06c8592b4de5bda4b13a96d05be7a.tar.bz2 android_packages_apps_Trebuchet-72a174de20d06c8592b4de5bda4b13a96d05be7a.zip |
Merge "Fix wonky background rendering in spring loaded mode" into honeycomb-mr1
-rw-r--r-- | src/com/android/launcher2/AllAppsTabbed.java | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/com/android/launcher2/AllAppsTabbed.java b/src/com/android/launcher2/AllAppsTabbed.java index aa828b049..0dd56acff 100644 --- a/src/com/android/launcher2/AllAppsTabbed.java +++ b/src/com/android/launcher2/AllAppsTabbed.java @@ -177,8 +177,11 @@ public class AllAppsTabbed extends TabHost implements AllAppsView, LauncherTrans // Turn on hardware layers for performance setLayerType(LAYER_TYPE_HARDWARE, null); // Re-enable the rendering of the dimmed background in All Apps for performance reasons - mLauncher.getWorkspace().disableBackground(); - mBackground.setVisibility(VISIBLE); + // if we're fading it in + if (mLauncher.getWorkspace().getBackgroundAlpha() == 0f) { + mLauncher.getWorkspace().disableBackground(); + mBackground.setVisibility(VISIBLE); + } // just a sanity check that we don't build a layer before a call to onLayout if (!mFirstLayout) { // force building the layer at the beginning of the animation, so you don't get a @@ -199,8 +202,10 @@ public class AllAppsTabbed extends TabHost implements AllAppsView, LauncherTrans } // Move the rendering of the dimmed background to workspace after the all apps animation // is done, so that the background is not rendered *above* the mini workspace screens - mLauncher.getWorkspace().enableBackground(); - mBackground.setVisibility(GONE); + if (mBackground.getVisibility() != GONE) { + mLauncher.getWorkspace().enableBackground(); + mBackground.setVisibility(GONE); + } mAllApps.allowHardwareLayerCreation(); } |