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

Commit d0886069 authored by Michael Wright's avatar Michael Wright Committed by android-build-merger
Browse files

Merge "Stop active media projections on user switch." into lmp-mr1-dev...

Merge "Stop active media projections on user switch." into lmp-mr1-dev automerge: 3292c0e2 automerge: 40bd8f41
automerge: fa5f1fbc

* commit 'fa5f1fbc':
  Stop active media projections on user switch.
parents 0f5e1975 fa5f1fbc
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