Merge "Fix NPE in BubbleTextView"
This commit is contained in:
committed by
Android (Google) Code Review
commit
b8f9746f32
@@ -128,8 +128,11 @@ public class BubbleTextView extends TextView implements VisibilityChangedBroadca
|
||||
|
||||
private void invalidatePressedOrFocusedBackground() {
|
||||
int padding = HolographicOutlineHelper.MAX_OUTER_BLUR_RADIUS / 2;
|
||||
((View)getParent()).invalidate(getLeft() - padding, getTop() - padding,
|
||||
getRight() + padding, getBottom() + padding);
|
||||
View parent = (View) getParent();
|
||||
if (parent != null) {
|
||||
parent.invalidate(getLeft() - padding, getTop() - padding,
|
||||
getRight() + padding, getBottom() + padding);
|
||||
}
|
||||
invalidate();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user