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
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user