BiometricPrompt should setTextOperationUser

Bug: 153581728

Test: BiometricPromptDemo, able to enter PIN for secondary user
Change-Id: I24679d5d178d5691c4359e04d1877adc4d2908ad
This commit is contained in:
Kevin Chyn
2020-04-15 11:20:18 -07:00
parent b131e1b746
commit fc0040dc9f

View File

@@ -17,6 +17,7 @@
package com.android.systemui.biometrics;
import android.content.Context;
import android.os.UserHandle;
import android.text.InputType;
import android.util.AttributeSet;
import android.view.KeyEvent;
@@ -68,6 +69,7 @@ public class AuthCredentialPasswordView extends AuthCredentialView
protected void onAttachedToWindow() {
super.onAttachedToWindow();
mPasswordField.setTextOperationUser(UserHandle.of(mUserId));
if (mCredentialType == Utils.CREDENTIAL_PIN) {
mPasswordField.setInputType(
InputType.TYPE_CLASS_NUMBER | InputType.TYPE_NUMBER_VARIATION_PASSWORD);