Bug 1089668 - Avoid NPE on parent when tab strip item is pressed (r=mcomella)

This commit is contained in:
Lucas Rocha 2014-10-29 17:39:12 +00:00
parent 4f74b0fee4
commit 2b69b6e2c6

View File

@ -188,7 +188,9 @@ public class TabStripItemView extends ThemedLinearLayout
// The surrounding tab strip dividers need to be hidden
// when a tab item enters pressed state.
View parent = (View) getParent();
parent.invalidate();
if (parent != null) {
parent.invalidate();
}
}
void updateFromTab(Tab tab) {