Loading packages/SystemUI/src/com/android/keyguard/KeyguardPasswordViewController.java +7 −0 Original line number Diff line number Diff line Loading @@ -59,6 +59,7 @@ public class KeyguardPasswordViewController private final boolean mShowImeAtScreenOn; private EditText mPasswordEntry; private ImageView mSwitchImeButton; private boolean mPaused; private final OnEditorActionListener mOnEditorActionListener = (v, actionId, event) -> { // Check if this was the result of hitting the enter key Loading Loading @@ -202,6 +203,7 @@ public class KeyguardPasswordViewController @Override public void onResume(int reason) { super.onResume(reason); mPaused = false; if (reason != KeyguardSecurityView.SCREEN_ON || mShowImeAtScreenOn) { showInput(); } Loading @@ -222,6 +224,11 @@ public class KeyguardPasswordViewController @Override public void onPause() { if (mPaused) { return; } mPaused = true; if (!mPasswordEntry.isVisibleToUser()) { // Reset all states directly and then hide IME when the screen turned off. super.onPause(); Loading Loading
packages/SystemUI/src/com/android/keyguard/KeyguardPasswordViewController.java +7 −0 Original line number Diff line number Diff line Loading @@ -59,6 +59,7 @@ public class KeyguardPasswordViewController private final boolean mShowImeAtScreenOn; private EditText mPasswordEntry; private ImageView mSwitchImeButton; private boolean mPaused; private final OnEditorActionListener mOnEditorActionListener = (v, actionId, event) -> { // Check if this was the result of hitting the enter key Loading Loading @@ -202,6 +203,7 @@ public class KeyguardPasswordViewController @Override public void onResume(int reason) { super.onResume(reason); mPaused = false; if (reason != KeyguardSecurityView.SCREEN_ON || mShowImeAtScreenOn) { showInput(); } Loading @@ -222,6 +224,11 @@ public class KeyguardPasswordViewController @Override public void onPause() { if (mPaused) { return; } mPaused = true; if (!mPasswordEntry.isVisibleToUser()) { // Reset all states directly and then hide IME when the screen turned off. super.onPause(); Loading