Merge "Quick fix for NullPointerException 211713013" into sc-v2-dev am: b7f37cd797
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16569980 Change-Id: I6c8bce01aa621ad8c09c5c2f1bed93e8de3c3b17
This commit is contained in:
@@ -278,7 +278,9 @@ public class RemoteAnimationTargetCompat {
|
||||
* @see SurfaceControl#release()
|
||||
*/
|
||||
public void release() {
|
||||
leash.mSurfaceControl.release();
|
||||
if (leash.mSurfaceControl != null) {
|
||||
leash.mSurfaceControl.release();
|
||||
}
|
||||
if (mStartLeash != null) {
|
||||
mStartLeash.release();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user