From fc0040dc9f27e00b5310dbb367d4e5e89cb00805 Mon Sep 17 00:00:00 2001 From: Kevin Chyn Date: Wed, 15 Apr 2020 11:20:18 -0700 Subject: [PATCH] BiometricPrompt should setTextOperationUser Bug: 153581728 Test: BiometricPromptDemo, able to enter PIN for secondary user Change-Id: I24679d5d178d5691c4359e04d1877adc4d2908ad --- .../android/systemui/biometrics/AuthCredentialPasswordView.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/SystemUI/src/com/android/systemui/biometrics/AuthCredentialPasswordView.java b/packages/SystemUI/src/com/android/systemui/biometrics/AuthCredentialPasswordView.java index d8a11d36a3359..e6a62c26712a1 100644 --- a/packages/SystemUI/src/com/android/systemui/biometrics/AuthCredentialPasswordView.java +++ b/packages/SystemUI/src/com/android/systemui/biometrics/AuthCredentialPasswordView.java @@ -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);