diff options
Diffstat (limited to 'src/com/cyanogenmod/trebuchet/PagedViewWidget.java')
-rw-r--r-- | src/com/cyanogenmod/trebuchet/PagedViewWidget.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/com/cyanogenmod/trebuchet/PagedViewWidget.java b/src/com/cyanogenmod/trebuchet/PagedViewWidget.java index b821b6f2d..ce52bb33b 100644 --- a/src/com/cyanogenmod/trebuchet/PagedViewWidget.java +++ b/src/com/cyanogenmod/trebuchet/PagedViewWidget.java @@ -127,12 +127,12 @@ public class PagedViewWidget extends LinearLayout { } } - public void applyFromLauncherActionInfo(LauncherActionInfo info) { + public void applyFromLauncherAction(LauncherAction.Action info) { mIsAppWidget = false; final ImageView image = (ImageView) findViewById(R.id.widget_preview); - image.setContentDescription(getContext().getResources().getString(info.action.getString())); + image.setContentDescription(getContext().getResources().getString(info.getString())); final TextView name = (TextView) findViewById(R.id.widget_name); - name.setText(info.title); + name.setText(getContext().getResources().getString(info.getString())); final TextView dims = (TextView) findViewById(R.id.widget_dims); if (dims != null) { dims.setText(String.format(mDimensionsFormatString, 1, 1)); @@ -147,7 +147,7 @@ public class PagedViewWidget extends LinearLayout { return maxSize; } - void applyPreview(FastBitmapDrawable preview, int index) { + void applyPreview(FastBitmapDrawable preview) { final PagedViewWidgetImageView image = (PagedViewWidgetImageView) findViewById(R.id.widget_preview); if (preview != null) { |