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:
@ -690,6 +690,7 @@ public final class MenuItemImpl implements MenuItem {
|
||||
|
||||
public MenuItem setActionView(View view) {
|
||||
mActionView = view;
|
||||
mMenu.onItemActionRequestChanged(this);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user