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

Commit 11dea4d7 authored by Adam Cohen's avatar Adam Cohen Committed by Android (Google) Code Review
Browse files

Merge "Fix issue where pin field doesn't have focus (issue 7348937)" into jb-mr1-dev

parents f2e28abb ac8a59d3
Loading
Loading
Loading
Loading
+10 −1
Original line number Diff line number Diff line
@@ -86,6 +86,13 @@ public class KeyguardPasswordView extends LinearLayout
        mLockPatternUtils = utils;
    }

    @Override
    public void onWindowFocusChanged(boolean hasWindowFocus) {
        if (hasWindowFocus) {
            reset();
        }
    }

    public void reset() {
        // start fresh
        mPasswordEntry.setText("");
@@ -191,8 +198,10 @@ public class KeyguardPasswordView extends LinearLayout
            }

            public void afterTextChanged(Editable s) {
                if (mCallback != null) {
                    mCallback.userActivity(0);
                }
            }
        });

        // If there's more than one IME, enable the IME switcher button