Adding some logging around launcher restore
> Also enabling fileLog when the device is debug build (even when launcher is not dogfood build) Bug: 30735662 Change-Id: Ieab2c962d57f6f7f972f8111070d4ecbef06b3e7
This commit is contained in:
1 parent
e09bacc1ef
commit
49f19f0af9
5 files changed
+19
-1
No files matched your search
@@ -89,10 +89,12 @@ public class ImportDataTask {
|
||||
ArrayList<Long> allScreens = LauncherDbUtils.getScreenIdsFromCursor(
|
||||
mContext.getContentResolver().query(mOtherScreensUri, null, null, null,
|
||||
LauncherSettings.WorkspaceScreens.SCREEN_RANK));
|
||||
FileLog.d(TAG, "Importing DB from " + mOtherFavoritesUri);
|
||||
|
||||
// During import we reset the screen IDs to 0-indexed values.
|
||||
if (allScreens.isEmpty()) {
|
||||
// No thing to migrate
|
||||
FileLog.e(TAG, "No data found to import");
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -293,6 +295,7 @@ public class ImportDataTask {
|
||||
}
|
||||
}
|
||||
}
|
||||
FileLog.d(TAG, totalItemsOnWorkspace + " items imported from external source");
|
||||
if (totalItemsOnWorkspace < MIN_ITEM_COUNT_FOR_SUCCESSFUL_MIGRATION) {
|
||||
throw new Exception("Insufficient data");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user