Merge "Consistently re-enabling the wallpaper when we leave launcher. (Bug 6445085)" into jb-dev
This commit is contained in:
commit
b2a275ecd2
2 files changed
+5
-4
No files matched your search
@@ -524,10 +524,6 @@ public class AppsCustomizePagedView extends PagedViewWithDraggableItems implemen
|
|||||||
mPressedIcon.lockDrawableState();
|
mPressedIcon.lockDrawableState();
|
||||||
}
|
}
|
||||||
|
|
||||||
// NOTE: we need to re-enable the wallpaper visibility if we want correct transitions
|
|
||||||
// between items that are launched from the workspace and all apps. It will be disabled
|
|
||||||
// correctly the next time the window is visible in AppsCustomizeTabHost.
|
|
||||||
mLauncher.updateWallpaperVisibility(true);
|
|
||||||
mLauncher.startActivitySafely(v, appInfo.intent, appInfo);
|
mLauncher.startActivitySafely(v, appInfo.intent, appInfo);
|
||||||
|
|
||||||
} else if (v instanceof PagedViewWidget) {
|
} else if (v instanceof PagedViewWidget) {
|
||||||
|
|||||||
@@ -665,6 +665,11 @@ public final class Launcher extends Activity
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void onPause() {
|
protected void onPause() {
|
||||||
|
// NOTE: We want all transitions from launcher to act as if the wallpaper were enabled
|
||||||
|
// to be consistent. So re-enable the flag here, and we will re-disable it as necessary
|
||||||
|
// when Launcher resumes and we are still in AllApps.
|
||||||
|
updateWallpaperVisibility(true);
|
||||||
|
|
||||||
super.onPause();
|
super.onPause();
|
||||||
mPaused = true;
|
mPaused = true;
|
||||||
mDragController.cancelDrag();
|
mDragController.cancelDrag();
|
||||||
|
|||||||
Reference in new issue
Block a user