Work Profile Passphrase Setting
Create a new section in Security Settings which includes all settings for the Work Challenge. Only some settings apply to the Work Challenge, so we reuse the security settings layouts for items and compare them against a whitelist to remove unwanted items. Additionally, remove all usages of ChooseLockGeneric.KEY_USER_ID in favor of Intent.EXTRA_USER_ID. Change-Id: I3d1ba953a2056f7c61a7b3feeb8b49f1a352dff6
This commit is contained in:
@@ -87,7 +87,7 @@ public class ChooseLockPassword extends SettingsActivity {
|
||||
boolean confirmCredentials, int userId) {
|
||||
Intent intent = createIntent(context, quality, minLength, maxLength,
|
||||
requirePasswordToDecrypt, confirmCredentials);
|
||||
intent.putExtra(ChooseLockGeneric.KEY_USER_ID, userId);
|
||||
intent.putExtra(Intent.EXTRA_USER_ID, userId);
|
||||
return intent;
|
||||
}
|
||||
|
||||
@@ -103,7 +103,7 @@ public class ChooseLockPassword extends SettingsActivity {
|
||||
int maxLength, boolean requirePasswordToDecrypt, String password, int userId) {
|
||||
Intent intent = createIntent(context, quality, minLength, maxLength,
|
||||
requirePasswordToDecrypt, password);
|
||||
intent.putExtra(ChooseLockGeneric.KEY_USER_ID, userId);
|
||||
intent.putExtra(Intent.EXTRA_USER_ID, userId);
|
||||
return intent;
|
||||
}
|
||||
|
||||
@@ -120,7 +120,7 @@ public class ChooseLockPassword extends SettingsActivity {
|
||||
int maxLength, boolean requirePasswordToDecrypt, long challenge, int userId) {
|
||||
Intent intent = createIntent(context, quality, minLength, maxLength,
|
||||
requirePasswordToDecrypt, challenge);
|
||||
intent.putExtra(ChooseLockGeneric.KEY_USER_ID, userId);
|
||||
intent.putExtra(Intent.EXTRA_USER_ID, userId);
|
||||
return intent;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user