diff options
author | nebkat <nebkat@teamhacksung.org> | 2012-12-26 13:01:07 +0000 |
---|---|---|
committer | nebkat <nebkat@teamhacksung.org> | 2012-12-26 13:38:33 +0000 |
commit | 8fb7b9eadd45959d2c3aca9a1bb910ca875cc593 (patch) | |
tree | a652102d46137188697b4e225d6312f432026c92 /src/com/cyanogenmod/trebuchet/PagedViewWidget.java | |
parent | 8fb6e3e975674d6960dc370ce0d2c7dd80b50117 (diff) | |
download | android_packages_apps_Trebuchet-8fb7b9eadd45959d2c3aca9a1bb910ca875cc593.tar.gz android_packages_apps_Trebuchet-8fb7b9eadd45959d2c3aca9a1bb910ca875cc593.tar.bz2 android_packages_apps_Trebuchet-8fb7b9eadd45959d2c3aca9a1bb910ca875cc593.zip |
LauncherActions: Don't use magic intents
Change-Id: I5ee3fbc9b1cdc63407def751bb7639cb54bdb7c3
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) { |