Fix bug 3237638 - make it easy to change a "refresh" AB button/icon

into the indeterminate progress icon

This fixes a bug that caused ActionViews to not be updated properly
after a pass through invalidateOptionsMenu/onPrepareOptionsMenu. Apps
can now set/clear action views to display progress spinner widgets or
anything else on demand.

Change-Id: I138eceb504177c6bb5b86d40a68a82973aa841a5
This commit is contained in:
Adam Powell
2011-01-24 11:48:54 -08:00
parent da6f929584
commit abbcc241c0

View File

@ -690,6 +690,7 @@ public final class MenuItemImpl implements MenuItem {
public MenuItem setActionView(View view) {
mActionView = view;
mMenu.onItemActionRequestChanged(this);
return this;
}