Update work profile app lock to latest spec
* Updated text and description for PIN, password and pattern * Added enterprise logo to work profile lock Bug: 141290838 Test: Manual testing atest com.android.systemui.biometrics.AuthBiometricViewTest atest com.android.systemui.biometrics.AuthContainerViewTest Change-Id: Iac6c9ca15e7446cbd7cce9fc1a1ac4e1c867bf31
This commit is contained in:
@@ -688,6 +688,15 @@ public final class Utils extends com.android.settingslib.Utils {
|
||||
return um.getCredentialOwnerProfile(userId);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the credential type of the given user id.
|
||||
*/
|
||||
public static @LockPatternUtils.CredentialType int getCredentialType(Context context,
|
||||
int userId) {
|
||||
final LockPatternUtils lpu = new LockPatternUtils(context);
|
||||
return lpu.getCredentialTypeForUser(userId);
|
||||
}
|
||||
|
||||
private static final StringBuilder sBuilder = new StringBuilder(50);
|
||||
private static final java.util.Formatter sFormatter = new java.util.Formatter(
|
||||
sBuilder, Locale.getDefault());
|
||||
|
Reference in New Issue
Block a user