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

Commit 05aab581 authored by Michael Wright's avatar Michael Wright
Browse files

Stop active media projections on user switch.

Bug: 19278080
Change-Id: I63cc8aa12954d4de257b793967d3845a6f86dc3f
parent 6cad6513
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -98,6 +98,11 @@ public final class MediaProjectionManagerService extends SystemService
    @Override
    public void onSwitchUser(int userId) {
        mMediaRouter.rebindAsUser(userId);
        synchronized (mLock) {
            if (mProjectionGrant != null) {
                mProjectionGrant.stop();
            }
        }
    }

    @Override