We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3e1cf5b + d40423a commit fbbdbc2Copy full SHA for fbbdbc2
core/java/com/android/internal/app/ActionBarImpl.java
@@ -184,8 +184,15 @@ private void init(View decor) {
184
mContextDisplayMode = mActionView.isSplitActionBar() ?
185
CONTEXT_DISPLAY_SPLIT : CONTEXT_DISPLAY_NORMAL;
186
187
+ // This was initially read from the action bar style
188
+ final int current = mActionView.getDisplayOptions();
189
+ final boolean homeAsUp = (current & DISPLAY_HOME_AS_UP) != 0;
190
+ if (homeAsUp) {
191
+ mDisplayHomeAsUpSet = true;
192
+ }
193
+
194
ActionBarPolicy abp = ActionBarPolicy.get(mContext);
- setHomeButtonEnabled(abp.enableHomeButtonByDefault());
195
+ setHomeButtonEnabled(abp.enableHomeButtonByDefault() || homeAsUp);
196
setHasEmbeddedTabs(abp.hasEmbeddedTabs());
197
}
198
0 commit comments