mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-28 15:56:49 +00:00
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
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user