Changing the format for device profile definition
Device profiles are defined such that the grid size is fixed and only the icon and text sizes change. For every grid size option there are multiple display configurations. Bug: 118758696 Change-Id: I54aac9106c576324b02530913c447e849b4ae1da
This commit is contained in:
1 parent
dab230f63c
commit
415f173331
15 files changed
+397
-479
No files matched your search
@@ -1,5 +1,8 @@
|
||||
package com.android.launcher3.model;
|
||||
|
||||
import static com.android.launcher3.Utilities.getPointString;
|
||||
import static com.android.launcher3.Utilities.parsePoint;
|
||||
|
||||
import android.content.ComponentName;
|
||||
import android.content.ContentProviderOperation;
|
||||
import android.content.ContentValues;
|
||||
@@ -877,15 +880,6 @@ public class GridSizeMigrationTask {
|
||||
return dup;
|
||||
}
|
||||
|
||||
private static Point parsePoint(String point) {
|
||||
String[] split = point.split(",");
|
||||
return new Point(Integer.parseInt(split[0]), Integer.parseInt(split[1]));
|
||||
}
|
||||
|
||||
private static String getPointString(int x, int y) {
|
||||
return String.format(Locale.ENGLISH, "%d,%d", x, y);
|
||||
}
|
||||
|
||||
public static void markForMigration(
|
||||
Context context, int gridX, int gridY, int hotseatSize) {
|
||||
Utilities.getPrefs(context).edit()
|
||||
|
||||
Reference in new issue
Block a user