[Safer intents] Settings misc
To avoid implicit intents, make intents launch explicitly. Test: build Bug: 323061508 Change-Id: Ie19cbceb89842a75a180898abcce81b63c18d46c
This commit is contained in:
@@ -256,6 +256,7 @@ public class AccountPreferenceController extends AbstractPreferenceController
|
||||
if (preference == profileData.addAccountPreference) {
|
||||
mMetricsFeatureProvider.logClickedPreference(preference, metricsCategory);
|
||||
Intent intent = new Intent(ACTION_ADD_ACCOUNT);
|
||||
intent.setClass(mContext, AddAccountSettings.class);
|
||||
intent.putExtra(EXTRA_USER, profileData.userInfo.getUserHandle());
|
||||
intent.putExtra(EXTRA_AUTHORITIES, mAuthorities);
|
||||
mContext.startActivity(intent);
|
||||
|
||||
Reference in New Issue
Block a user