Do not delete chost widgets when opening DB.

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
This commit is contained in:
Sunny Goyal
2017-05-05 10:52:40 -07:00
parent 8dd56b7e44
commit 57266aa2bd

View File

@@ -755,7 +755,6 @@ public class LauncherProvider extends ContentProvider {
}
}
case 2:
removeGhostWidgets(db);
case 3:
// data updated
return;