From a9125c94072ed2e668ae2668755bf11741d319e7 Mon Sep 17 00:00:00 2001 From: David Marble Date: Thu, 20 Dec 2012 22:05:09 -0600 Subject: Trebuchet: Add overlayable config for tablet workspace grid size Tablets with a 4x3 screen such as the HP Touchpad do not work well with automatic grid size setting. This problem is described in CyanogenMod Issue 5798: Trebuchet Tablet. This fixes that issue. This creates a flag in config that can be overlayed at build time to allow user settings to adjust grid size. The maximum settable row and column counts are also overlayable. This is a port of: http://review.cyanogenmod.org/#/c/21067/ which was merged into jellybean. The default behavior is unchanged. Rebased. Change-Id: I3d7cf5e121a423a0033310eee88e498bc080af3c --- res/xml/preferences_homescreen.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'res/xml') diff --git a/res/xml/preferences_homescreen.xml b/res/xml/preferences_homescreen.xml index 862ab20..02d2d43 100644 --- a/res/xml/preferences_homescreen.xml +++ b/res/xml/preferences_homescreen.xml @@ -26,9 +26,9 @@ launcher:pickerTitle2="@string/preferences_interface_homescreen_general_grid_columns_title" launcher:defaultValue1="@integer/target_cell_count_x" launcher:defaultValue2="@integer/target_cell_count_y" - launcher:max1="7" + launcher:max1="@integer/config_maxWorkspaceRows" launcher:min1="3" - launcher:max2="7" + launcher:max2="@integer/config_maxWorkspaceColumns" launcher:min2="3" />