Merge "Fix NPE from freeing expanded view while expanding." into rvc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
a2ed294a46
@@ -660,6 +660,14 @@ public class NotificationContentView extends FrameLayout {
|
|||||||
|
|
||||||
private void updateContentTransformation() {
|
private void updateContentTransformation() {
|
||||||
int visibleType = calculateVisibleType();
|
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) {
|
if (visibleType != mVisibleType) {
|
||||||
// A new transformation starts
|
// A new transformation starts
|
||||||
mTransformationStartVisibleType = mVisibleType;
|
mTransformationStartVisibleType = mVisibleType;
|
||||||
|
|||||||
Reference in New Issue
Block a user