Fixing bug where wallpaper disappears
Change-Id: I50f57a9cec20079c36c65f85243c1c4bc16c7fb8
This commit is contained in:
1 parent
ac6d5db407
commit
f4ddea3df7
1 file changed
+9
-1
@@ -2150,6 +2150,8 @@ public final class Launcher extends Activity
|
||||
((LauncherTransitionable) toView).onLauncherTransitionStart(scaleAnim, false);
|
||||
}
|
||||
scaleAnim.addListener(new AnimatorListenerAdapter() {
|
||||
boolean animationCancelled = false;
|
||||
|
||||
@Override
|
||||
public void onAnimationStart(Animator animation) {
|
||||
updateWallpaperVisibility(true);
|
||||
@@ -2175,7 +2177,13 @@ public final class Launcher extends Activity
|
||||
mWorkspace.hideScrollingIndicator(true);
|
||||
mWorkspace.hideDockDivider(true);
|
||||
}
|
||||
updateWallpaperVisibility(false);
|
||||
if (!animationCancelled) {
|
||||
updateWallpaperVisibility(false);
|
||||
}
|
||||
}
|
||||
|
||||
public void onAnimationCancel(Animator animation) {
|
||||
animationCancelled = true;
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user