OSDN Git Service

Fix MenuItemImpl#hasCollapsibleActionView for action providers
authorAdam Powell <adamp@google.com>
Thu, 11 Jul 2013 23:17:10 +0000 (16:17 -0700)
committerAdam Powell <adamp@google.com>
Thu, 11 Jul 2013 23:24:12 +0000 (16:24 -0700)
commitb4c8ba49ac6ccce8e5c7904741f4adff05e37640
tree45313a664b7795cca4b83d2c21d373ba1d9c988f
parent713412fd54aba940ff67ab804292a2033681df89
Fix MenuItemImpl#hasCollapsibleActionView for action providers

hasCollapsibleActionView was previously checking only that mActionView
was not null, even if the item had a valid ActionProvider that would
later lazily create an action view when prompted. Account for this and
attempt to create the action view if needed when
hasCollapsibleActionView is called.

Bug 8732876

Change-Id: Idf7b329770f686208882509b82a4cb13c70ef32c
core/java/com/android/internal/view/menu/MenuItemImpl.java