Skip to content

Commit 66d46f1

Browse files
adampAndroid (Google) Code Review
authored andcommitted
Merge "Fix bug 5296851 - Silly monkeys."
2 parents 1667446 + b844011 commit 66d46f1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,8 +268,10 @@ protected void onConfigurationChanged(Configuration newConfig) {
268268

269269
if (mTabScrollView != null && mIncludeTabs) {
270270
ViewGroup.LayoutParams lp = mTabScrollView.getLayoutParams();
271-
lp.width = LayoutParams.WRAP_CONTENT;
272-
lp.height = LayoutParams.MATCH_PARENT;
271+
if (lp != null) {
272+
lp.width = LayoutParams.WRAP_CONTENT;
273+
lp.height = LayoutParams.MATCH_PARENT;
274+
}
273275
mTabScrollView.setAllowCollapse(true);
274276
}
275277
}

0 commit comments

Comments
 (0)