commit | 763cbb134f40fa1e555c0a945a2a651f69193505 | [log] [tgz] |
---|---|---|
author | Adam Powell <adamp@google.com> | Tue Mar 01 10:45:34 2011 -0800 |
committer | Adam Powell <adamp@google.com> | Tue Mar 01 10:45:34 2011 -0800 |
tree | 2288390e94b7bb00f96f03c9340939303e0d2f70 | |
parent | 6ade7c2624af7438fa50238f170db4299707c313 [diff] [blame] |
Fix a bug where the lazy-initialized ActionBar object was being too lazy. Change-Id: I80dc06deffd1df8cc8ae96fd878d66a101a17086
diff --git a/core/java/android/app/Activity.java b/core/java/android/app/Activity.java index 9e72c1b..c502e6f 100644 --- a/core/java/android/app/Activity.java +++ b/core/java/android/app/Activity.java
@@ -2417,6 +2417,7 @@ */ public boolean onMenuOpened(int featureId, Menu menu) { if (featureId == Window.FEATURE_ACTION_BAR) { + initActionBar(); if (mActionBar != null) { mActionBar.dispatchMenuVisibilityChanged(true); } else {