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

* commit '40bd8f416b30b7b0eae244aa0c5aabd0be0d1c55':
  Stop active media projections on user switch.
This commit is contained in:
Michael Wright
2015-02-11 19:50:56 +00:00
committed by Android Git Automerger

View File

@@ -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