Skip to content

Commit fe2b7cc

Browse files
author
Dianne Hackborn
committed
Fix issue #6268190
Change-Id: Ib269fe34c4d3e704f4080076e173241c0761040c
1 parent 61d6c8c commit fe2b7cc

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,9 @@ protected boolean fitSystemWindows(Rect insets) {
137137

138138
// The top and bottom action bars are always within the content area.
139139
boolean changed = applyInsets(mActionBarTop, insets, true, true, false, true);
140-
changed |= applyInsets(mActionBarBottom, insets, true, false, true, true);
140+
if (mActionBarBottom != null) {
141+
changed |= applyInsets(mActionBarBottom, insets, true, false, true, true);
142+
}
141143

142144
// If the window has not requested system UI layout flags, we need to
143145
// make sure its content is not being covered by system UI... though it

0 commit comments

Comments
 (0)