Render an additional icon to the tappable tiles with pending intents
Test: robotest, manual Bug: 281517110 Change-Id: Ia5fbae63d56a6f1e6ee8fb3ee58ae912d14b6c75
This commit is contained in:
@@ -573,6 +573,10 @@ public abstract class DashboardFragment extends SettingsPreferenceFragment
|
||||
return (tile instanceof ActivityTile || tile.hasPendingIntent())
|
||||
? new PrimarySwitchPreference(getPrefContext())
|
||||
: new SwitchPreference(getPrefContext());
|
||||
} else if (tile.hasPendingIntent()) {
|
||||
Preference preference = new Preference(getPrefContext());
|
||||
preference.setWidgetLayoutResource(R.layout.preference_external_action_icon);
|
||||
return preference;
|
||||
} else {
|
||||
return new Preference(getPrefContext());
|
||||
}
|
||||
|
Reference in New Issue
Block a user