Merge "Quick fix for NullPointerException 211713013" into sc-v2-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
b7f37cd797
@@ -278,7 +278,9 @@ public class RemoteAnimationTargetCompat {
|
|||||||
* @see SurfaceControl#release()
|
* @see SurfaceControl#release()
|
||||||
*/
|
*/
|
||||||
public void release() {
|
public void release() {
|
||||||
|
if (leash.mSurfaceControl != null) {
|
||||||
leash.mSurfaceControl.release();
|
leash.mSurfaceControl.release();
|
||||||
|
}
|
||||||
if (mStartLeash != null) {
|
if (mStartLeash != null) {
|
||||||
mStartLeash.release();
|
mStartLeash.release();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user