Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 80cc88bd authored by zhangzhihao's avatar zhangzhihao
Browse files

Fix surfaceControl release exception



Insets does not perform a check when releasing SurfaceControl. Now we perform a check when releasing it.

Test: m
Bug: 391478307

Change-Id: Id9b21be1c708d898c1fe0ba9a8a97ad09de3685a
Signed-off-by: default avatarzhangzhihao <zhangzhihao7@xiaomi.corp-partner.google.com>
parent d6c2e676
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -190,7 +190,7 @@ public class InsetsSourceControl implements Parcelable {
    }

    public void release(Consumer<SurfaceControl> surfaceReleaseConsumer) {
        if (mLeash != null) {
        if (mLeash != null && mLeash.isValid()) {
            surfaceReleaseConsumer.accept(mLeash);
        }
    }