Refactor migrateGridIfNeeded to pass the grid states and make it easier for unit testing
No-op change Bug: 325286145 Flag: NA Test: compiling Change-Id: I703c08059b81e20111c17a142dc54335f18a5a87
This commit is contained in:
@@ -105,12 +105,10 @@ public class GridSizeMigrationUtil {
|
||||
*/
|
||||
public static boolean migrateGridIfNeeded(
|
||||
@NonNull Context context,
|
||||
@NonNull InvariantDeviceProfile idp,
|
||||
@NonNull DeviceGridState srcDeviceState,
|
||||
@NonNull DeviceGridState destDeviceState,
|
||||
@NonNull DatabaseHelper target,
|
||||
@NonNull SQLiteDatabase source) {
|
||||
|
||||
DeviceGridState srcDeviceState = new DeviceGridState(context);
|
||||
DeviceGridState destDeviceState = new DeviceGridState(idp);
|
||||
if (!needsToMigrate(srcDeviceState, destDeviceState)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user