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

Commit 0386410e authored by Jim Miller's avatar Jim Miller Committed by Android Git Automerger
Browse files

am 5b09fcc7: am 946f6ab4: am 9819a617: Merge "Fix password field focus in...

am 5b09fcc7: am 946f6ab4: am 9819a617: Merge "Fix password field focus in keyguard" into jb-mr1.1-dev

* commit '5b09fcc7':
  Fix password field focus in keyguard
parents f90b0377 5b09fcc7
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -287,11 +287,6 @@ public class KeyguardHostView extends KeyguardViewBase {

        showPrimarySecurityScreen(false);
        updateSecurityViews();

        // Make sure at least this view is focusable in case nothing below it is. Otherwise,
        // requestFocus() on this view will fail and allow events, such as volume keys, to be
        // handled by the fallback handler.  See bug 7546960 for details.
        setFocusableInTouchMode(true);
    }

    private boolean shouldEnableAddWidget() {
+12 −5
Original line number Diff line number Diff line
@@ -146,7 +146,9 @@ public class KeyguardViewManager {

        @Override
        public boolean dispatchKeyEvent(KeyEvent event) {
            if (event.getAction() == KeyEvent.ACTION_DOWN && mKeyguardView != null) {
            if (mKeyguardView != null) {
                // Always process back and menu keys, regardless of focus
                if (event.getAction() == KeyEvent.ACTION_DOWN) {
                    int keyCode = event.getKeyCode();
                    if (keyCode == KeyEvent.KEYCODE_BACK && mKeyguardView.handleBackKey()) {
                        return true;
@@ -154,6 +156,11 @@ public class KeyguardViewManager {
                        return true;
                    }
                }
                // Always process media keys, regardless of focus
                if (mKeyguardView.dispatchKeyEvent(event)) {
                    return true;
                }
            }
            return super.dispatchKeyEvent(event);
        }
    }