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
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user