Skip to content
Commit c3564ab3 authored by Aaron Liu's avatar Aaron Liu
Browse files

Do not setenabled to false for edittext.

calling #setEnabled(false) and #setEnabled(true) for some reason
prevents the edit text from registering the backspace key. Also #setFocusable(boolean) also has the same behavior. By setting the cursor visibility, with the text input filter, we see the edit text but cannot add any characters into it and there is no cursor.

There is a visual difference here as the old behavior would grey out the
textview.

Fixes: 288469866
Test: lockout with password security method. Type some stuff, exit
bouncer and re-enter and type some stuff. Wait for lockout to finish and
type stuff and then try to hit the backspace key.

Change-Id: I5fa8e022a765c95e65c0342e68136e648d0e4ac0
parent 0f0a5bd6
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment