Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fc0040dc authored by Kevin Chyn's avatar Kevin Chyn
Browse files

BiometricPrompt should setTextOperationUser

Bug: 153581728

Test: BiometricPromptDemo, able to enter PIN for secondary user
Change-Id: I24679d5d178d5691c4359e04d1877adc4d2908ad
parent b131e1b7
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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);