Skip to content

Commit a8743f1

Browse files
committed
Fix bug 5425280 - Two ActionBar icons show up
Change-Id: Ic82f8ce648f9314a0800eeff326df7d8dfe5027b
1 parent c51bb4d commit a8743f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/java/com/android/internal/widget/ActionBarView.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ public void setDisplayOptions(int options) {
537537

538538
if ((flagsChanged & DISPLAY_RELAYOUT_MASK) != 0) {
539539
final boolean showHome = (options & ActionBar.DISPLAY_SHOW_HOME) != 0;
540-
final int vis = showHome ? VISIBLE : GONE;
540+
final int vis = showHome && mExpandedActionView == null ? VISIBLE : GONE;
541541
mHomeLayout.setVisibility(vis);
542542

543543
if ((flagsChanged & ActionBar.DISPLAY_HOME_AS_UP) != 0) {

0 commit comments

Comments
 (0)