summaryrefslogtreecommitdiffstats
path: root/src/com
diff options
context:
space:
mode:
authorMichael Jurka <mikejurka@google.com>2011-03-09 15:47:30 -0800
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-03-09 15:47:30 -0800
commit72a174de20d06c8592b4de5bda4b13a96d05be7a (patch)
tree4a7fd5caf3c4cf169349e2a0e338598867ed2730 /src/com
parent92c1faec0bc4a3e67bf7984bf4d14d4317ac0b7a (diff)
parentcc6c8848e69f7d758da1ac8fd73897db57908ef3 (diff)
downloadandroid_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
Diffstat (limited to 'src/com')
-rw-r--r--src/com/android/launcher2/AllAppsTabbed.java13
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();
}