Using WidgetCell in the Pin Item confirmation prompt for a consistent UI
Also fixing some platform API changes in PinItemRequestCompat Bug: 33584624 Change-Id: I255829f0079f1a3967bf8d6a337da12c890eb7ec
This commit is contained in:
@@ -50,7 +50,7 @@ public abstract class ShortcutConfigActivityInfo {
|
||||
private final ComponentName mCn;
|
||||
private final UserHandle mUser;
|
||||
|
||||
private ShortcutConfigActivityInfo(ComponentName cn, UserHandle user) {
|
||||
protected ShortcutConfigActivityInfo(ComponentName cn, UserHandle user) {
|
||||
mCn = cn;
|
||||
mUser = user;
|
||||
}
|
||||
@@ -84,6 +84,14 @@ public abstract class ShortcutConfigActivityInfo {
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns true if various properties ({@link #getLabel()}, {@link #getFullResIcon}) can
|
||||
* be safely persisted.
|
||||
*/
|
||||
public boolean isPersistable() {
|
||||
return true;
|
||||
}
|
||||
|
||||
static class ShortcutConfigActivityInfoVL extends ShortcutConfigActivityInfo {
|
||||
|
||||
private final ActivityInfo mInfo;
|
||||
|
||||
Reference in New Issue
Block a user