am eadd2134: Merge "Focus security fields before widgets." into klp-dev
* commit 'eadd21343ca35613dd4aa285b16e40033fe0d225': Focus security fields before widgets.
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user