diff options
author | 2020-06-25 23:55:59 +0000 | |
---|---|---|
committer | 2020-06-25 23:55:59 +0000 | |
commit | 582387e45313aa79fa3f1ee09dafe8711d28dba8 (patch) | |
tree | 6cd02ae81b8b293f07fec2b9fc5a40d1e9255719 | |
parent | 38b59f91c19321d78864e9943c08825d4990143a (diff) | |
parent | a2ed294a4636aa948b6ded1d438366b627a4263e (diff) |
Merge "Fix NPE from freeing expanded view while expanding." into rvc-dev am: a2ed294a46
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11978882
Change-Id: Iae47af780ef07eea3feefe0d7bfe861a7f0a8c11
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/notification/row/NotificationContentView.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/NotificationContentView.java b/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/NotificationContentView.java index b0861bfbd643..1f5b063b0aa2 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/NotificationContentView.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/NotificationContentView.java @@ -660,6 +660,14 @@ public class NotificationContentView extends FrameLayout { private void updateContentTransformation() { int visibleType = calculateVisibleType(); + if (getTransformableViewForVisibleType(mVisibleType) == null) { + // Case where visible view was removed in middle of transformation. In this case, we + // just update immediately to the appropriate view. + mVisibleType = visibleType; + updateViewVisibilities(visibleType); + updateBackgroundColor(false); + return; + } if (visibleType != mVisibleType) { // A new transformation starts mTransformationStartVisibleType = mVisibleType; |