Fixing bug where wallpaper disappears
Change-Id: I50f57a9cec20079c36c65f85243c1c4bc16c7fb8
diff --git a/src/com/android/launcher2/Launcher.java b/src/com/android/launcher2/Launcher.java
index 255bf06..532926a 100644
--- a/src/com/android/launcher2/Launcher.java
+++ b/src/com/android/launcher2/Launcher.java
@@ -2150,6 +2150,8 @@
((LauncherTransitionable) toView).onLauncherTransitionStart(scaleAnim, false);
}
scaleAnim.addListener(new AnimatorListenerAdapter() {
+ boolean animationCancelled = false;
+
@Override
public void onAnimationStart(Animator animation) {
updateWallpaperVisibility(true);
@@ -2175,7 +2177,13 @@
mWorkspace.hideScrollingIndicator(true);
mWorkspace.hideDockDivider(true);
}
- updateWallpaperVisibility(false);
+ if (!animationCancelled) {
+ updateWallpaperVisibility(false);
+ }
+ }
+
+ public void onAnimationCancel(Animator animation) {
+ animationCancelled = true;
}
});