We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1667446 + b844011 commit 66d46f1Copy full SHA for 66d46f1
core/java/com/android/internal/widget/ActionBarView.java
@@ -268,8 +268,10 @@ protected void onConfigurationChanged(Configuration newConfig) {
268
269
if (mTabScrollView != null && mIncludeTabs) {
270
ViewGroup.LayoutParams lp = mTabScrollView.getLayoutParams();
271
- lp.width = LayoutParams.WRAP_CONTENT;
272
- lp.height = LayoutParams.MATCH_PARENT;
+ if (lp != null) {
+ lp.width = LayoutParams.WRAP_CONTENT;
273
+ lp.height = LayoutParams.MATCH_PARENT;
274
+ }
275
mTabScrollView.setAllowCollapse(true);
276
}
277
0 commit comments