Add logs for grid migration
Bug: 364711064 Flag: com.android.launcher3.one_grid_specs Test: n/a it's just logs Change-Id: Icce21f507e07adfd954fd88634bdd7f0becf4a4c
This commit is contained in:
1 parent
1efaefe9cb
commit
4f1e64c8e6
1 file changed
+6
-1
@@ -58,12 +58,17 @@ class GridSizeMigrationLogic {
|
||||
}
|
||||
|
||||
val isFirstLoad = get(context).get(LauncherPrefs.IS_FIRST_LOAD_AFTER_RESTORE)
|
||||
Log.d(TAG, "Begin grid migration. First load: $isFirstLoad")
|
||||
Log.d(
|
||||
TAG,
|
||||
"Begin grid migration. First load: $isFirstLoad\n srcDeviceState: " +
|
||||
"$srcDeviceState\ndestDeviceState: $destDeviceState\nisDestNewDb: $isDestNewDb",
|
||||
)
|
||||
|
||||
// This is a special case where if the grid is the same amount of columns but a larger
|
||||
// amount of rows we simply copy over the source grid to the destination grid, rather
|
||||
// than undergoing the general grid migration.
|
||||
if (shouldMigrateToStrictlyTallerGrid(isDestNewDb, srcDeviceState, destDeviceState)) {
|
||||
Log.d(TAG, "Migrating to strictly taller grid")
|
||||
copyTable(source, TABLE_NAME, target.writableDatabase, TABLE_NAME, context)
|
||||
if (oneGridSpecs()) {
|
||||
val destReader = DbReader(target.writableDatabase, TABLE_NAME, context)
|
||||
|
||||
Reference in new issue
Block a user