commit | b884d90e29c838447a805fd721b5ccee40104b14 | [log] [tgz] |
---|---|---|
author | Justin Weir <justinweir@google.com> | Tue Aug 29 12:32:35 2023 -0400 |
committer | Justin Weir <justinweir@google.com> | Tue Aug 29 16:35:25 2023 +0000 |
tree | 446835e60f6dc90d3e9bb3a662c1136f332612da | |
parent | 49f82e12be4b4e241773c6d9f0d1212c0b430c94 [diff] |
Fix NPE Fixes: 296380464 Test: N/A Change-Id: Icfacdc1dfb85de14bb207abf0e30823c4727c0e2
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimController.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimController.java index 62a8cfd..b0f8276 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimController.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/ScrimController.java
@@ -763,7 +763,7 @@ * Sets the amount of vertical over scroll that should be performed on the notifications scrim. */ public void setNotificationsOverScrollAmount(int overScrollAmount) { - mNotificationsScrim.setTranslationY(overScrollAmount); + if (mNotificationsScrim != null) mNotificationsScrim.setTranslationY(overScrollAmount); } /**