[Safer intents] Connectivity
To avoid implicit intents, make intents launch explicitly. Bug: 323061508 Test: build Change-Id: I44ff8a789d933f11ba7e68e52055575245276224
This commit is contained in:
@@ -96,7 +96,8 @@ public class SatelliteSettingPreferenceController extends
|
||||
public boolean handlePreferenceTreeClick(@NonNull Preference preference) {
|
||||
if (getPreferenceKey().equals(preference.getKey())) {
|
||||
// This activity runs in phone process, we must use intent to start
|
||||
final Intent intent = new Intent(Settings.ACTION_SATELLITE_SETTING);
|
||||
final Intent intent = new Intent(Settings.ACTION_SATELLITE_SETTING)
|
||||
.setPackage(mContext.getPackageName());
|
||||
// This will setup the Home and Search affordance
|
||||
intent.putExtra(SettingsActivity.EXTRA_SHOW_FRAGMENT_AS_SUBSETTING, true);
|
||||
intent.putExtra(SatelliteSetting.SUB_ID, mSubId);
|
||||
|
||||
Reference in New Issue
Block a user