Merge "Stop active media projections on user switch." into lmp-mr1-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
3292c0e264
@@ -98,6 +98,11 @@ public final class MediaProjectionManagerService extends SystemService
|
|||||||
@Override
|
@Override
|
||||||
public void onSwitchUser(int userId) {
|
public void onSwitchUser(int userId) {
|
||||||
mMediaRouter.rebindAsUser(userId);
|
mMediaRouter.rebindAsUser(userId);
|
||||||
|
synchronized (mLock) {
|
||||||
|
if (mProjectionGrant != null) {
|
||||||
|
mProjectionGrant.stop();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user