Skip to content

Commit 20923ab

Browse files
committed
NavBar: Fix FC (NPE) on Landscape
1 parent b5120f2 commit 20923ab

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

packages/SystemUI/src/com/android/systemui/statusbar/policy/KeyButtonView.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,9 @@ public void setGlowScale(float x) {
244244

245245
// also invalidate our immediate parent to help avoid situations where nearby glows
246246
// interfere
247-
((View) getParent()).invalidate();
247+
if(((View) getParent()) != null) {
248+
((View) getParent()).invalidate();
249+
}
248250
}
249251
}
250252

0 commit comments

Comments
 (0)