Add summary provider for system tile.
Refactored getLocaleNames() into a FeatureProvider interface so it's reusable and testable. Bug: 31801428 Test: RunSettingsRoboTests Change-Id: I2d31a66a4b32cfa7a364a4cfef1f6eea87084577
This commit is contained in:
@@ -234,8 +234,8 @@ public abstract class DashboardFragment extends SettingsPreferenceFragment
|
||||
if (tile.icon != null) {
|
||||
pref.setIcon(tile.icon.loadDrawable(context));
|
||||
}
|
||||
final Intent intent = new Intent(tile.intent);
|
||||
if (intent != null) {
|
||||
if (tile.intent != null) {
|
||||
final Intent intent = new Intent(tile.intent);
|
||||
pref.setOnPreferenceClickListener(preference -> {
|
||||
intent.putExtra(SettingsActivity.EXTRA_SHOW_FRAGMENT_AS_SUBSETTING, true);
|
||||
getActivity().startActivityForResult(intent, 0);
|
||||
|
Reference in New Issue
Block a user