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

Commit d8158096 authored by Craig Mautner's avatar Craig Mautner Committed by Android Git Automerger
Browse files

am eadd2134: Merge "Focus security fields before widgets." into klp-dev

* commit 'eadd2134':
  Focus security fields before widgets.
parents 580dcb96 eadd2134
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -1003,6 +1003,16 @@ public class SlidingChallengeLayout extends ViewGroup implements ChallengeLayout
        }
    }

    @Override
    protected boolean onRequestFocusInDescendants(int direction, Rect previouslyFocusedRect) {
        // Focus security fileds before widgets.
        if (mChallengeView != null &&
                mChallengeView.requestFocus(direction, previouslyFocusedRect)) {
            return true;
        }
        return super.onRequestFocusInDescendants(direction, previouslyFocusedRect);
    }

    public void computeScroll() {
        super.computeScroll();