Skip to content

Commit a726e23

Browse files
sganovAndroid (Google) Code Review
authored andcommitted
Merge "Cannot force a shown item from an ActionMode into the overflow menu." into jb-mr1-dev
2 parents 3041750 + 14c4669 commit a726e23

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

core/java/com/android/internal/view/menu/ActionMenuPresenter.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -476,6 +476,9 @@ public boolean flagActionItems() {
476476
if (isAction) maxActions--;
477477

478478
item.setIsActionButton(isAction);
479+
} else {
480+
// Neither requires nor requests an action button.
481+
item.setIsActionButton(false);
479482
}
480483
}
481484
return true;

0 commit comments

Comments
 (0)