Fix bug 3146938 - Menus spawned by ActionBar should hide when action
bar is hidden
Any popup spawned by the private class MenuPopupHelper will be hidden
if its anchor becomes hidden. ("hidden" == !View#isShown())
Fix a bug where ActionBar subtitle views were not going away when
subtitle text was set to null.
Fix a bug when switching out of ActionBar tabbed nav mode with no
active tabs.
Change-Id: I1f30c067156221f96905ac69ab876418ad2e94f8
diff --git a/core/java/com/android/internal/widget/ActionBarView.java b/core/java/com/android/internal/widget/ActionBarView.java
index be6a57a..7a64da0 100644
--- a/core/java/com/android/internal/widget/ActionBarView.java
+++ b/core/java/com/android/internal/widget/ActionBarView.java
@@ -330,6 +330,7 @@
mSubtitle = subtitle;
if (mSubtitleView != null) {
mSubtitleView.setText(subtitle);
+ mSubtitleView.setVisibility(subtitle != null ? VISIBLE : GONE);
}
}