From 04752a3e634b68d25e1ff65a300b5919b28730e8 Mon Sep 17 00:00:00 2001 From: fbaron Date: Tue, 5 Nov 2024 10:53:44 -0800 Subject: [PATCH] Add tablet 5x8 grids Bug: 364711064 Flag: com.android.launcher3.one_grid_rotation_handling Test: n/a Change-Id: I509a52f76852a2034020efc818bf571f00dff90d --- res/xml/backupscheme.xml | 1 + res/xml/default_workspace_5x8.xml | 76 ++++++++++++++++++++ res/xml/paddings_5x8.xml | 45 ++++++++++++ src/com/android/launcher3/LauncherFiles.java | 2 + 4 files changed, 124 insertions(+) create mode 100644 res/xml/default_workspace_5x8.xml create mode 100644 res/xml/paddings_5x8.xml diff --git a/res/xml/backupscheme.xml b/res/xml/backupscheme.xml index 27fddc81d3..58916a8b76 100644 --- a/res/xml/backupscheme.xml +++ b/res/xml/backupscheme.xml @@ -2,6 +2,7 @@ + diff --git a/res/xml/default_workspace_5x8.xml b/res/xml/default_workspace_5x8.xml new file mode 100644 index 0000000000..b078cfd7f8 --- /dev/null +++ b/res/xml/default_workspace_5x8.xml @@ -0,0 +1,76 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/res/xml/paddings_5x8.xml b/res/xml/paddings_5x8.xml new file mode 100644 index 0000000000..afa70c59bc --- /dev/null +++ b/res/xml/paddings_5x8.xml @@ -0,0 +1,45 @@ + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/com/android/launcher3/LauncherFiles.java b/src/com/android/launcher3/LauncherFiles.java index 1148f7929c..95c0ee8680 100644 --- a/src/com/android/launcher3/LauncherFiles.java +++ b/src/com/android/launcher3/LauncherFiles.java @@ -16,6 +16,7 @@ public class LauncherFiles { private static final String XML = ".xml"; public static final String LAUNCHER_DB = "launcher.db"; + public static final String LAUNCHER_5_BY_8_DB = "launcher_5_by_8.db"; public static final String LAUNCHER_6_BY_5_DB = "launcher_6_by_5.db"; public static final String LAUNCHER_4_BY_5_DB = "launcher_4_by_5.db"; public static final String LAUNCHER_4_BY_6_DB = "launcher_4_by_6.db"; @@ -35,6 +36,7 @@ public class LauncherFiles { public static final List GRID_DB_FILES = Collections.unmodifiableList(Arrays.asList( LAUNCHER_DB, + LAUNCHER_5_BY_8_DB, LAUNCHER_6_BY_5_DB, LAUNCHER_4_BY_5_DB, LAUNCHER_4_BY_6_DB,