diff options
author | Michael Jurka <mikejurka@google.com> | 2012-10-30 15:32:27 -0700 |
---|---|---|
committer | Michael Jurka <mikejurka@google.com> | 2012-10-31 16:46:24 -0700 |
commit | 0b2bd8d11d6947a6ce71db0691ba341aec7a2964 (patch) | |
tree | b42898609dd5e8a3dd2966dd550ca4f406c26f82 /src/com/android/settings/ActivityPicker.java | |
parent | 523d9dc460d3af22372860f4d3f83a4529257545 (diff) | |
download | packages_apps_Settings-0b2bd8d11d6947a6ce71db0691ba341aec7a2964.tar.gz packages_apps_Settings-0b2bd8d11d6947a6ce71db0691ba341aec7a2964.tar.bz2 packages_apps_Settings-0b2bd8d11d6947a6ce71db0691ba341aec7a2964.zip |
New widget picker for keyguard widgets
New layout for widget picker is still not up to
final design, but this change prepares all the
backend work
Also, remove use of features filter from the
picker, since this is being removed from the API
Change-Id: I9b332e22cf34b98c20c720602c920d28aed01d6c
Diffstat (limited to 'src/com/android/settings/ActivityPicker.java')
-rw-r--r-- | src/com/android/settings/ActivityPicker.java | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/com/android/settings/ActivityPicker.java b/src/com/android/settings/ActivityPicker.java index ac79cea35..edbccc3fb 100644 --- a/src/com/android/settings/ActivityPicker.java +++ b/src/com/android/settings/ActivityPicker.java @@ -201,7 +201,7 @@ public class ActivityPicker extends AlertActivity implements /** * Item that appears in a {@link PickAdapter} list. */ - public static class Item { + public static class Item implements AppWidgetLoader.LabelledItem { protected static IconResizer sResizer; protected IconResizer getResizer(Context context) { @@ -262,6 +262,10 @@ public class ActivityPicker extends AlertActivity implements } return intent; } + + public CharSequence getLabel() { + return label; + } } private final LayoutInflater mInflater; @@ -471,5 +475,5 @@ public class ActivityPicker extends AlertActivity implements public int getOpacity() { return PixelFormat.TRANSLUCENT; } - } + } } |