Merge "BiometricPrompt should setTextOperationUser" into rvc-dev am: 176c70efef am: b469ebf72f

Change-Id: I70d57d0c49892724568a106c96f636e7cc312cd7
This commit is contained in:
Kevin Chyn
2020-04-15 23:59:40 +00:00
committed by Automerger Merge Worker

View File

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