diff options
author | nebkat <nebkat@teamhacksung.org> | 2012-12-30 23:12:34 +0000 |
---|---|---|
committer | nebkat <nebkat@teamhacksung.org> | 2012-12-30 23:14:27 +0000 |
commit | 8ef4dd94aa73ef5a1fc7cac0945a38a6680fa550 (patch) | |
tree | 92014e3fd024af6c7091bd077b3bcfca8628437d /src/com/cyanogenmod/trebuchet/PagedViewWidget.java | |
parent | 8dd822a77c94a57b670faca72227e46338d3feee (diff) | |
download | packages_apps_trebuchet-8ef4dd94aa73ef5a1fc7cac0945a38a6680fa550.zip packages_apps_trebuchet-8ef4dd94aa73ef5a1fc7cac0945a38a6680fa550.tar.gz packages_apps_trebuchet-8ef4dd94aa73ef5a1fc7cac0945a38a6680fa550.tar.bz2 |
LauncherModel: Fixes
Change-Id: Ibc2cd7e30309380ac95467467df8d831ca12a183
Diffstat (limited to 'src/com/cyanogenmod/trebuchet/PagedViewWidget.java')
-rw-r--r-- | src/com/cyanogenmod/trebuchet/PagedViewWidget.java | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/com/cyanogenmod/trebuchet/PagedViewWidget.java b/src/com/cyanogenmod/trebuchet/PagedViewWidget.java index e694c15..eae0f02 100644 --- a/src/com/cyanogenmod/trebuchet/PagedViewWidget.java +++ b/src/com/cyanogenmod/trebuchet/PagedViewWidget.java @@ -29,8 +29,6 @@ import android.widget.ImageView; import android.widget.LinearLayout; import android.widget.TextView; -import com.cyanogenmod.trebuchet.R; - /** * The linear layout used strictly for the widget/wallpaper tab of the customization tray */ @@ -108,8 +106,8 @@ public class PagedViewWidget extends LinearLayout { name.setText(info.label); final TextView dims = (TextView) findViewById(R.id.widget_dims); if (dims != null) { - int hSpan = Math.min(cellSpan[0], LauncherModel.getCellCountX()); - int vSpan = Math.min(cellSpan[1], LauncherModel.getCellCountY()); + int hSpan = Math.min(cellSpan[0], LauncherModel.getWorkspaceCellCountX()); + int vSpan = Math.min(cellSpan[1], LauncherModel.getWorkspaceCellCountY()); dims.setText(String.format(mDimensionsFormatString, hSpan, vSpan)); } } |