From 5012ebbc5c00194236f425403e8771061dc7bf92 Mon Sep 17 00:00:00 2001 From: Svetoslav Ganov Date: Thu, 5 Apr 2012 17:08:46 -0700 Subject: [PATCH] Minor twaek to the focus behavior. bug:6296603 Change-Id: I3bd0b291e6013cae019ca9049d9d3dc506845ab0 --- core/java/android/view/View.java | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/core/java/android/view/View.java b/core/java/android/view/View.java index 5d7c8cd15669c..3c4b866c461dd 100644 --- a/core/java/android/view/View.java +++ b/core/java/android/view/View.java @@ -4059,14 +4059,7 @@ public class View implements Drawable.Callback, Drawable.Callback2, KeyEvent.Cal void ensureInputFocusOnFirstFocusable() { View root = getRootView(); if (root != null) { - // Find the first focusble from the top. - View next = root.focusSearch(FOCUS_FORWARD); - if (next != null) { - // Giving focus to the found focusable will not - // perform a search since we found a view that is - // guaranteed to be able to take focus. - next.requestFocus(FOCUS_FORWARD); - } + root.requestFocus(FOCUS_FORWARD); } }