mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-04 09:56:49 +00:00
Generate grid migration cases and test if they are valid
This makes sure the grid migration logic always produces valid results. Bug: 313900847 Bug: 323525592 Flag: NA Test: ValidGridMigrationUnitTest.kt Change-Id: I76b19e1fa315f8a997afad34e5a4df7cc465b0c2
This commit is contained in:
@@ -156,11 +156,11 @@ public class DeviceGridState implements Comparable<DeviceGridState> {
|
||||
}
|
||||
|
||||
public Integer getColumns() {
|
||||
return Integer.parseInt(String.valueOf(mGridSizeString.charAt(0)));
|
||||
return Integer.parseInt(String.valueOf(mGridSizeString.split(",")[0]));
|
||||
}
|
||||
|
||||
public Integer getRows() {
|
||||
return Integer.parseInt(String.valueOf(mGridSizeString.charAt(2)));
|
||||
return Integer.parseInt(String.valueOf(mGridSizeString.split(",")[1]));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user