OSDN Git Service

Handle callbacks to CollapsibleActionViews that are in an actionLayout.
authorAmith Yamasani <yamasani@google.com>
Tue, 26 Jul 2011 23:14:26 +0000 (16:14 -0700)
committerAmith Yamasani <yamasani@google.com>
Wed, 27 Jul 2011 01:15:08 +0000 (18:15 -0700)
commit10da590839e264735de8a4582021aca0dab81037
tree62ed64e0f59a2b63c28febad26e7da5d228e826a
parente3f5edf9755ca2ffbb654389251a61b35a3d9901
Handle callbacks to CollapsibleActionViews that are in an actionLayout.

Also, the onActionViewCollapsed needs to be called before detaching
the action view, so that the action view can dismiss the keyboard properly.

Fixes the Gmail search case where the keyboard doesn't disappear on hitting
the "up" affordance after a search.

Change-Id: I3c2f3f90f0edf6473404e6ceae3fa08866cad736
core/java/android/widget/SearchView.java
core/java/com/android/internal/view/menu/MenuItemImpl.java
core/java/com/android/internal/widget/ActionBarView.java