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

This commit is contained in:
Michael Wright
2015-02-11 18:23:54 +00:00
committed by Android (Google) Code Review

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