diff options
author | Winson Chung <winsonc@google.com> | 2011-05-05 17:06:13 -0700 |
---|---|---|
committer | Winson Chung <winsonc@google.com> | 2011-05-06 16:25:37 -0700 |
commit | 63257c110a4ee54d5e8872c471cce254cf613c7a (patch) | |
tree | 4dc38f02429a6e4c78356ddabb39e1af17dc4b2c /src/com/android/launcher2/PagedViewWidget.java | |
parent | 563ed71d682cc979a095fff7d27f1afe378508df (diff) | |
download | packages_apps_trebuchet-63257c110a4ee54d5e8872c471cce254cf613c7a.zip packages_apps_trebuchet-63257c110a4ee54d5e8872c471cce254cf613c7a.tar.gz packages_apps_trebuchet-63257c110a4ee54d5e8872c471cce254cf613c7a.tar.bz2 |
Minor changes to help address some hiccups when panning, changing tabs and rotating in AppsCustomize.
- Also removing references to old all-apps 2d/3d
Change-Id: Ibe07ad8b4facc5c57b3c82ccf0b55260be61a31b
Diffstat (limited to 'src/com/android/launcher2/PagedViewWidget.java')
-rw-r--r-- | src/com/android/launcher2/PagedViewWidget.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/com/android/launcher2/PagedViewWidget.java b/src/com/android/launcher2/PagedViewWidget.java index 88c5537..46bf532 100644 --- a/src/com/android/launcher2/PagedViewWidget.java +++ b/src/com/android/launcher2/PagedViewWidget.java @@ -64,6 +64,7 @@ public class PagedViewWidget extends LinearLayout implements Checkable { private PagedViewIconCache.Key mIconCacheKey; private PagedViewIconCache mIconCache; + private String mDimensionsFormatString; private int mAlpha = 255; private int mHolographicAlpha; @@ -162,6 +163,7 @@ public class PagedViewWidget extends LinearLayout implements Checkable { mCheckedFadeOutDuration = r.getInteger(R.integer.config_dragAppsCustomizeIconFadeOutDuration); } + mDimensionsFormatString = r.getString(R.string.widget_dims_format); setWillNotDraw(false); setClipToPadding(false); @@ -189,7 +191,7 @@ public class PagedViewWidget extends LinearLayout implements Checkable { name.setText(info.label); name.setLayerType(View.LAYER_TYPE_SOFTWARE, null); final TextView dims = (TextView) findViewById(R.id.widget_dims); - dims.setText(mContext.getString(R.string.widget_dims_format, cellSpan[0], cellSpan[1])); + dims.setText(String.format(mDimensionsFormatString, cellSpan[0], cellSpan[1])); dims.setLayerType(View.LAYER_TYPE_SOFTWARE, null); if (createHolographicOutline) { @@ -209,7 +211,7 @@ public class PagedViewWidget extends LinearLayout implements Checkable { name.setText(info.loadLabel(pm)); name.setLayerType(View.LAYER_TYPE_SOFTWARE, null); final TextView dims = (TextView) findViewById(R.id.widget_dims); - dims.setText(mContext.getString(R.string.widget_dims_format, 1, 1)); + dims.setText(String.format(mDimensionsFormatString, 1, 1)); dims.setLayerType(View.LAYER_TYPE_SOFTWARE, null); if (createHolographicOutline) { |