diff options
author | Sunny Goyal <sunnygoyal@google.com> | 2017-06-14 11:02:27 -0700 |
---|---|---|
committer | Sunny Goyal <sunnygoyal@google.com> | 2017-06-14 11:04:05 -0700 |
commit | 571e12da665d24ab9a6d26af39432591e7f84f08 (patch) | |
tree | 1dde82785e2ada619e055300ac8f09c92a4c8f7a /src | |
parent | 7847d10f389425a92e11b29f181acbbebc8b1dab (diff) | |
download | android_packages_apps_Trebuchet-571e12da665d24ab9a6d26af39432591e7f84f08.tar.gz android_packages_apps_Trebuchet-571e12da665d24ab9a6d26af39432591e7f84f08.tar.bz2 android_packages_apps_Trebuchet-571e12da665d24ab9a6d26af39432591e7f84f08.zip |
Fixing FLAG_PROVIDER_NOT_READY not being cleared in LoaderTask
If a widget is installed, the provider is always ready. The flag was not
being cleared all the time (similar to PackageUpdatedTask).
Bug: 62496671
Change-Id: Ia1c0cb3b312a20ed6451baeccb632a5e5f0e3edc
Diffstat (limited to 'src')
-rw-r--r-- | src/com/android/launcher3/model/LoaderTask.java | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/com/android/launcher3/model/LoaderTask.java b/src/com/android/launcher3/model/LoaderTask.java index b24d68251..bb2d0b6af 100644 --- a/src/com/android/launcher3/model/LoaderTask.java +++ b/src/com/android/launcher3/model/LoaderTask.java @@ -576,7 +576,8 @@ public class LoaderTask implements Runnable { // available or not available. We do not need to track // any future restore updates. int status = c.restoreFlag & - ~LauncherAppWidgetInfo.FLAG_RESTORE_STARTED; + ~LauncherAppWidgetInfo.FLAG_RESTORE_STARTED & + ~LauncherAppWidgetInfo.FLAG_PROVIDER_NOT_READY; if (!wasProviderReady) { // If provider was not previously ready, update the // status and UI flag. @@ -584,9 +585,6 @@ public class LoaderTask implements Runnable { // Id would be valid only if the widget restore broadcast was received. if (isIdValid) { status |= LauncherAppWidgetInfo.FLAG_UI_NOT_READY; - } else { - status &= ~LauncherAppWidgetInfo - .FLAG_PROVIDER_NOT_READY; } } appWidgetInfo.restoreStatus = status; |