Merge "Handle edge-case where the focus-search root is focused" into oc-dev

am: fe9ce65491

Change-Id: I8232e1313e9e9babb152fcd03f1e6e224a979e52
This commit is contained in:
Evan Rosky
2017-04-03 23:17:45 +00:00
committed by android-build-merger

View File

@@ -118,7 +118,7 @@ public class FocusFinder {
* @return the "effective" root of {@param focused}
*/
private ViewGroup getEffectiveRoot(ViewGroup root, View focused) {
if (focused == null) {
if (focused == null || focused == root) {
return root;
}
ViewParent effective = focused.getParent();