From 86e18033ea77533350dbe4ce31c04ee2d45b1568 Mon Sep 17 00:00:00 2001 From: Steve Kondik Date: Tue, 22 May 2012 10:58:37 -0700 Subject: trebuchet: Fix setting of default workspace size Change-Id: I9b1dcdce8c22c479c6eceb492b9d307c54433711 --- src/com/cyanogenmod/trebuchet/Workspace.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/com/cyanogenmod/trebuchet/Workspace.java b/src/com/cyanogenmod/trebuchet/Workspace.java index 16d92c380..5a03a2fcd 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); -- cgit v1.2.3