Injected settings start new task
- Bug: 13534214 Change-Id: I10b47f58651166a58a86efe8da2979e8f9a2a5cb
This commit is contained in:
@@ -254,8 +254,11 @@ class SettingsInjector {
|
|||||||
Drawable icon = pm.getDrawable(info.packageName, info.iconId, null);
|
Drawable icon = pm.getDrawable(info.packageName, info.iconId, null);
|
||||||
pref.setIcon(icon);
|
pref.setIcon(icon);
|
||||||
|
|
||||||
|
// Activity to start if they click on the preference. Must start in new task to ensure
|
||||||
|
// that "android.settings.LOCATION_SOURCE_SETTINGS" brings user back to Settings > Location.
|
||||||
Intent settingIntent = new Intent();
|
Intent settingIntent = new Intent();
|
||||||
settingIntent.setClassName(info.packageName, info.settingsActivity);
|
settingIntent.setClassName(info.packageName, info.settingsActivity);
|
||||||
|
settingIntent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
|
||||||
pref.setIntent(settingIntent);
|
pref.setIntent(settingIntent);
|
||||||
|
|
||||||
prefs.add(pref);
|
prefs.add(pref);
|
||||||
|
|||||||
Reference in New Issue
Block a user