diff options
| author | 2022-01-24 15:17:05 +0000 | |
|---|---|---|
| committer | 2022-01-24 15:17:05 +0000 | |
| commit | 019879a9947d6397d9692e43f05a99a9f259e47b (patch) | |
| tree | 46d9f43562d987fca936cdac86020a28436ea729 | |
| parent | 35216e0275a4a743bbeb7f1c02969174c89946c1 (diff) | |
| parent | 3f64c1df9888bf7893e9747a2c149e6c695fb962 (diff) | |
Merge "Fix a transient view crash."
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ExpandableView.java | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ExpandableView.java b/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ExpandableView.java index 624e7416d3ee..6eff7993c59c 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ExpandableView.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ExpandableView.java @@ -552,14 +552,8 @@ public abstract class ExpandableView extends FrameLayout implements Dumpable { final ViewGroup transientContainer = getTransientContainer(); if (parent == null || parent == newParent) { // If this view's current parent is null or the same as the new parent, the add will - // succeed, so just make sure the tracked transient container is in sync with the - // current parent. - if (transientContainer != null && transientContainer != parent) { - Log.w(TAG, "Expandable view " + this - + " has transient container " + transientContainer - + " but different parent" + parent); - setTransientContainer(null); - } + // succeed as long as it's a true child, so just make sure the view isn't transient. + removeFromTransientContainer(); return; } if (transientContainer == null) { |