OSDN Git Service

Do not delete chost widgets when opening DB.
authorSunny Goyal <sunnygoyal@google.com>
Fri, 5 May 2017 17:52:40 +0000 (10:52 -0700)
committerSunny Goyal <sunnygoyal@google.com>
Fri, 5 May 2017 17:55:21 +0000 (10:55 -0700)
During restore, the data can be in inconsistant state, as the
system is yet to give us the widget map. Deleting the widget during
open would cause the AppWidgetRestoredReceiver to store the widget id
after it has been deleted.

Bug: 37935101
Bug: 38029633
Change-Id: Id3b8766229718239ae784794e848dcfbc74658ac

src/com/android/launcher3/LauncherProvider.java

index d4e3171..3150d5b 100644 (file)
@@ -755,7 +755,6 @@ public class LauncherProvider extends ContentProvider {
                     }
                 }
                 case 2:
-                    removeGhostWidgets(db);
                 case 3:
                     // data updated
                     return;