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

Commit 48b3ffc5 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Not blocking focus on action bar on tab"

parents 9e90a426 16bb2c75
Loading
Loading
Loading
Loading
+11 −11
Original line number Diff line number Diff line
@@ -1494,17 +1494,16 @@ public abstract class ActionBar {
        public void onFocusChange(View v, boolean hasFocus) {
            if (!hasFocus) {
                v.setOnFocusChangeListener(null);
                final View focused = mFocusRoot.findFocus();
                if (focused != null) {
                    focused.setOnFocusChangeListener(this);
                } else {
                mFocusRoot.post(this);
            }
        }
        }

        @Override
        public void run() {
            final View focused = mFocusRoot.findFocus();
            if (focused != null) {
                focused.setOnFocusChangeListener(this);
            } else {
                if (mContainer != null) {
                    mContainer.setTouchscreenBlocksFocus(true);
                }
@@ -1514,3 +1513,4 @@ public abstract class ActionBar {
            }
        }
    }
}