summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Kondik <shade@chemlab.org>2012-05-22 17:58:37 (GMT)
committerSteve Kondik <shade@chemlab.org>2012-05-22 17:58:37 (GMT)
commit86e18033ea77533350dbe4ce31c04ee2d45b1568 (patch)
tree93a5e9adc86b59a60a687df8d4684d07c484c6ef
parent7e495557d2cbd6adec400a16dcbb737d0bcc1306 (diff)
downloadandroid_packages_apps_Trebuchet-86e18033ea77533350dbe4ce31c04ee2d45b1568.zip
android_packages_apps_Trebuchet-86e18033ea77533350dbe4ce31c04ee2d45b1568.tar.gz
android_packages_apps_Trebuchet-86e18033ea77533350dbe4ce31c04ee2d45b1568.tar.bz2
trebuchet: Fix setting of default workspace size
Change-Id: I9b1dcdce8c22c479c6eceb492b9d307c54433711
-rw-r--r--src/com/cyanogenmod/trebuchet/Workspace.java7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/com/cyanogenmod/trebuchet/Workspace.java b/src/com/cyanogenmod/trebuchet/Workspace.java
index 16d92c3..5a03a2f 100644
--- a/src/com/cyanogenmod/trebuchet/Workspace.java
+++ b/src/com/cyanogenmod/trebuchet/Workspace.java
@@ -153,9 +153,6 @@ public class Workspace extends PagedView
private SpringLoadedDragController mSpringLoadedDragController;
private float mSpringLoadedShrinkFactor;
- private static final int DEFAULT_CELL_COUNT_X = 4;
- private static final int DEFAULT_CELL_COUNT_Y = 4;
-
// State variable that indicates whether the pages are small (ie when you're
// in all apps or customize mode)
@@ -298,8 +295,8 @@ public class Workspace extends PagedView
mWallpaperManager = WallpaperManager.getInstance(context);
- int cellCountX = DEFAULT_CELL_COUNT_X;
- int cellCountY = DEFAULT_CELL_COUNT_Y;
+ int cellCountX = context.getResources().getInteger(R.integer.config_workspaceColumns);
+ int cellCountY = context.getResources().getInteger(R.integer.config_workspaceRows);
TypedArray a = context.obtainStyledAttributes(attrs,
R.styleable.Workspace, defStyle, 0);