diff options
author | Derek Prothro <dprothro@google.com> | 2013-12-10 14:00:37 -0500 |
---|---|---|
committer | Derek Prothro <dprothro@google.com> | 2013-12-10 15:05:41 -0500 |
commit | 7aff399974c756930070d82d7b2df88f125dacd6 (patch) | |
tree | c8717f07e36d59b120737be17609907857be12cb /src/com/android/launcher3/Launcher.java | |
parent | 33231f587e1a6f716af68e6198df774d2847a8e5 (diff) | |
download | android_packages_apps_Trebuchet-7aff399974c756930070d82d7b2df88f125dacd6.tar.gz android_packages_apps_Trebuchet-7aff399974c756930070d82d7b2df88f125dacd6.tar.bz2 android_packages_apps_Trebuchet-7aff399974c756930070d82d7b2df88f125dacd6.zip |
Bind the workspace synchronously if started on -1 screen.
Previously, LoaderTask would be run asynchronously to bind
the workspace when started on -1 which would cause the user's
wallpaper to briefly flash when rotating the device on -1.
Bug: 11802691
Change-Id: I3a1a7a32fa28a81e041a283a93d808d5a8884133
Diffstat (limited to 'src/com/android/launcher3/Launcher.java')
-rw-r--r-- | src/com/android/launcher3/Launcher.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/launcher3/Launcher.java b/src/com/android/launcher3/Launcher.java index e2301ba69..9aaee5aaf 100644 --- a/src/com/android/launcher3/Launcher.java +++ b/src/com/android/launcher3/Launcher.java @@ -456,7 +456,7 @@ public class Launcher extends Activity if (DISABLE_SYNCHRONOUS_BINDING_CURRENT_PAGE || sPausedFromUserAction) { // If the user leaves launcher, then we should just load items asynchronously when // they return. - mModel.startLoader(true, -1); + mModel.startLoader(true, PagedView.INVALID_RESTORE_PAGE); } else { // We only load the page synchronously if the user rotates (or triggers a // configuration change) while launcher is in the foreground @@ -914,7 +914,7 @@ public class Launcher extends Activity sPausedFromUserAction = false; if (mRestoring || mOnResumeNeedsLoad) { mWorkspaceLoading = true; - mModel.startLoader(true, -1); + mModel.startLoader(true, PagedView.INVALID_RESTORE_PAGE); mRestoring = false; mOnResumeNeedsLoad = false; } |