mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-05 02:16:49 +00:00
Merge "Add logs for 4x4 to 4x5 missing row bug" into main
This commit is contained in:
committed by
Android (Google) Code Review
commit
f60ebdfa9d
@@ -121,13 +121,21 @@ public class GridSizeMigrationUtil {
|
||||
@NonNull DeviceGridState destDeviceState,
|
||||
@NonNull DatabaseHelper target,
|
||||
@NonNull SQLiteDatabase source) {
|
||||
|
||||
Log.i("b/360462379", "Going from " + srcDeviceState.getColumns() + "x"
|
||||
+ srcDeviceState.getRows());
|
||||
Log.i("b/360462379", "Going to " + destDeviceState.getColumns() + "x"
|
||||
+ destDeviceState.getRows());
|
||||
|
||||
if (!needsToMigrate(srcDeviceState, destDeviceState)) {
|
||||
Log.i("b/360462379", "Does not need to migrate.");
|
||||
return true;
|
||||
}
|
||||
|
||||
if (Flags.enableGridMigrationFix()
|
||||
&& srcDeviceState.getColumns().equals(destDeviceState.getColumns())
|
||||
&& srcDeviceState.getRows() < destDeviceState.getRows()) {
|
||||
Log.i("b/360462379", "Grid migration fix entry point.");
|
||||
// Only use this strategy when comparing the previous grid to the new grid and the
|
||||
// columns are the same and the destination has more rows
|
||||
copyTable(source, TABLE_NAME, target.getWritableDatabase(), TABLE_NAME, context);
|
||||
|
||||
Reference in New Issue
Block a user