Add autofill service setting in managed profile
Previously, there was no way to change the autofill service of the personal and managed profile independently. After 'uncloning' the setting in ag/4666330, we now introduce a separate UI control for each profile. BUG: 38033559 Test: Tested manually by setting up a work profile and verifying that the setting can be changed independently. Also verified that the additional UI does not show without a managed profile. Change-Id: I1c42fc4335bc319ca7f6fd1b7b10c781343ca248
This commit is contained in:
@@ -82,12 +82,16 @@ public abstract class DefaultAppPreferenceController extends AbstractPreferenceC
|
||||
final Intent settingIntent = getSettingIntent(app);
|
||||
if (settingIntent != null) {
|
||||
((GearPreference) preference).setOnGearClickListener(
|
||||
p -> mContext.startActivity(settingIntent));
|
||||
p -> startActivity(settingIntent));
|
||||
} else {
|
||||
((GearPreference) preference).setOnGearClickListener(null);
|
||||
}
|
||||
}
|
||||
|
||||
protected void startActivity(Intent intent) {
|
||||
mContext.startActivity(intent);
|
||||
}
|
||||
|
||||
protected abstract DefaultAppInfo getDefaultAppInfo();
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user