summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author TreeHugger Robot <treehugger-gerrit@google.com> 2020-06-25 23:55:59 +0000
committer Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> 2020-06-25 23:55:59 +0000
commit582387e45313aa79fa3f1ee09dafe8711d28dba8 (patch)
tree6cd02ae81b8b293f07fec2b9fc5a40d1e9255719
parent38b59f91c19321d78864e9943c08825d4990143a (diff)
parenta2ed294a4636aa948b6ded1d438366b627a4263e (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.java8
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;