mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-18 10:18:20 +00:00
Clearing DB if necessary, when applying the default layout
Bug: 19574498 Change-Id: I34850d9a7f7316bcc2cb9fc8a5be57d2488c16a6
This commit is contained in:
@@ -305,6 +305,10 @@ public class LauncherProvider extends ContentProvider {
|
||||
if (loader == null) {
|
||||
loader = getDefaultLayoutParser();
|
||||
}
|
||||
|
||||
// There might be some partially restored DB items, due to buggy restore logic in
|
||||
// previous versions of launcher.
|
||||
createEmptyDB();
|
||||
// Populate favorites table with initial favorites
|
||||
if ((mOpenHelper.loadFavorites(mOpenHelper.getWritableDatabase(), loader) <= 0)
|
||||
&& usingExternallyProvidedLayout) {
|
||||
|
||||
Reference in New Issue
Block a user