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

Commit fc8bc1ab authored by Jonathon Axford's avatar Jonathon Axford Committed by Android (Google) Code Review
Browse files

Merge "Disable password bouncer cursor when testing" into main

parents 49eb0f1f 554704f5
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -34,6 +34,7 @@ import static com.android.systemui.statusbar.policy.DevicePostureController.DEVI
import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.animation.ValueAnimator;
import android.app.ActivityManager;
import android.content.Context;
import android.content.res.ColorStateList;
import android.graphics.Insets;
@@ -191,6 +192,11 @@ public class KeyguardPasswordView extends KeyguardAbsKeyInputView {

        mPasswordEntry = findViewById(getPasswordTextViewId());
        mPasswordEntryDisabler = new TextViewInputDisabler(mPasswordEntry);

        // EditText cursor can fail screenshot tests, so disable it when testing
        if (ActivityManager.isRunningInTestHarness()) {
            mPasswordEntry.setCursorVisible(false);
        }
    }

    @Override