am 7d87c37b: am 6121f06e: Merge "Fix a bug where an action bar could be created when it should not be." into honeycomb-mr2
* commit '7d87c37b031616259d1db6a78ecb1ff20ee5ff5c': Fix a bug where an action bar could be created when it should not be.
This commit is contained in:
@@ -1760,6 +1760,11 @@ public class Activity extends ContextThemeWrapper
|
||||
*/
|
||||
private void initActionBar() {
|
||||
Window window = getWindow();
|
||||
|
||||
// Initializing the window decor can change window feature flags.
|
||||
// Make sure that we have the correct set before performing the test below.
|
||||
window.getDecorView();
|
||||
|
||||
if (isChild() || !window.hasFeature(Window.FEATURE_ACTION_BAR) || mActionBar != null) {
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user