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

Commit e871b1f6 authored by Naomi Musgrave's avatar Naomi Musgrave
Browse files

[MediaProjection] Fix NPE introduced from deadlock fix

Bug: 293133367
Test: Manual
Change-Id: I9c21acf069c66f1ade22c49b095ad5339fe13eca
parent 8228c296
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -260,9 +260,11 @@ public final class MediaProjectionManagerService extends SystemService
        }

        synchronized (mLock) {
            if (mProjectionGrant != null) {
                mProjectionGrant.stop();
            }
        }
    }

    private void startProjectionLocked(final MediaProjection projection) {
        if (mProjectionGrant != null) {