summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/model
diff options
context:
space:
mode:
authorSunny Goyal <sunnygoyal@google.com>2018-11-29 10:33:47 -0800
committerSunny Goyal <sunnygoyal@google.com>2018-12-07 00:06:25 -0800
commit415f17333123eb40e7677cf0766f59e7af3f7418 (patch)
treecb2573a312e63bb0602963cf3fa20d1a69f1ee5a /src/com/android/launcher3/model
parentdab230f63ccf3fa184e14ffa3d10a647097d8478 (diff)
downloadandroid_packages_apps_Trebuchet-415f17333123eb40e7677cf0766f59e7af3f7418.tar.gz
android_packages_apps_Trebuchet-415f17333123eb40e7677cf0766f59e7af3f7418.tar.bz2
android_packages_apps_Trebuchet-415f17333123eb40e7677cf0766f59e7af3f7418.zip
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
Diffstat (limited to 'src/com/android/launcher3/model')
-rw-r--r--src/com/android/launcher3/model/GridSizeMigrationTask.java12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/com/android/launcher3/model/GridSizeMigrationTask.java b/src/com/android/launcher3/model/GridSizeMigrationTask.java
index 2c1aa745f..289de1a4b 100644
--- a/src/com/android/launcher3/model/GridSizeMigrationTask.java
+++ b/src/com/android/launcher3/model/GridSizeMigrationTask.java
@@ -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()