summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher2
diff options
context:
space:
mode:
authorWinson Chung <winsonc@google.com>2012-06-07 14:50:10 -0700
committerWinson Chung <winsonc@google.com>2012-06-07 14:52:02 -0700
commit6cf79096ce2dcd0ba4cacc82b9f1d83ea69b5686 (patch)
treeafeb6457a8c5de0e5a7ad535b457596e2df12a40 /src/com/android/launcher2
parent478244409e15594ceaa7426a6a23cc805db0b1fc (diff)
downloadandroid_packages_apps_Trebuchet-6cf79096ce2dcd0ba4cacc82b9f1d83ea69b5686.tar.gz
android_packages_apps_Trebuchet-6cf79096ce2dcd0ba4cacc82b9f1d83ea69b5686.tar.bz2
android_packages_apps_Trebuchet-6cf79096ce2dcd0ba4cacc82b9f1d83ea69b5686.zip
Fixing regression in transition after returning to home from another app. (Bug 6629707)
Change-Id: Iadb2ff5752dafdd3ff9a4854ddbd24fd2ee467a6
Diffstat (limited to 'src/com/android/launcher2')
-rw-r--r--src/com/android/launcher2/Launcher.java18
1 files changed, 6 insertions, 12 deletions
diff --git a/src/com/android/launcher2/Launcher.java b/src/com/android/launcher2/Launcher.java
index 659077f71..3e471bfe3 100644
--- a/src/com/android/launcher2/Launcher.java
+++ b/src/com/android/launcher2/Launcher.java
@@ -1226,17 +1226,6 @@ public final class Launcher extends Activity
// some communication back with the app.
mWorkspace.postDelayed(mBuildLayersRunnable, 500);
- // We had to enable the wallpaper visibility when launching apps from all
- // apps (so that the transitions would be the same as when launching from
- // workspace) so take this time to see if we need to re-disable the
- // wallpaper visibility to ensure performance.
- mWorkspace.post(new Runnable() {
- @Override
- public void run() {
- disableWallpaperIfInAllApps();
- }
- });
-
observer.removeOnPreDrawListener(this);
return true;
}
@@ -2604,7 +2593,12 @@ public final class Launcher extends Activity
updateWallpaperVisibility(true);
} else {
// When launcher has focus again, disable the wallpaper if we are in AllApps
- disableWallpaperIfInAllApps();
+ mWorkspace.postDelayed(new Runnable() {
+ @Override
+ public void run() {
+ disableWallpaperIfInAllApps();
+ }
+ }, 500);
}
}