Commit 7502fa8f authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Simplify code, ensure non nullity

CID #1297073
parent 816be027
......@@ -180,11 +180,8 @@ public class SlidingTabLayout extends HorizontalScrollView {
tabView = LayoutInflater.from(getContext()).inflate(mTabViewLayoutId, mTabStrip,
false);
tabTitleView = (TextView) tabView.findViewById(mTabViewTextViewId);
}
if (tabView == null) {
} else {
tabView = createDefaultTabView(getContext());
}
if (tabTitleView == null && tabView instanceof TextView) {
tabTitleView = (TextView) tabView;
}
if (mDistributeEvenly) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment