diff options
author | Michael Wright <michaelwr@google.com> | 2015-02-11 18:43:29 +0000 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2015-02-11 18:43:29 +0000 |
commit | fa5f1fbc50050d26535e969ac68b04d318bbaf03 (patch) | |
tree | fb9c712cee8c52945c4c0c1d2e7de191148ddfe8 | |
parent | 0cc09449b6b1e418a7d04590e28d1336694230ba (diff) | |
parent | 40bd8f416b30b7b0eae244aa0c5aabd0be0d1c55 (diff) | |
download | frameworks_base-fa5f1fbc50050d26535e969ac68b04d318bbaf03.zip frameworks_base-fa5f1fbc50050d26535e969ac68b04d318bbaf03.tar.gz frameworks_base-fa5f1fbc50050d26535e969ac68b04d318bbaf03.tar.bz2 |
Merge "Stop active media projections on user switch." into lmp-mr1-dev automerge: 3292c0e
automerge: 40bd8f4
* commit '40bd8f416b30b7b0eae244aa0c5aabd0be0d1c55':
Stop active media projections on user switch.
-rw-r--r-- | services/core/java/com/android/server/media/projection/MediaProjectionManagerService.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/services/core/java/com/android/server/media/projection/MediaProjectionManagerService.java b/services/core/java/com/android/server/media/projection/MediaProjectionManagerService.java index e9b3f8b..bfdc400 100644 --- a/services/core/java/com/android/server/media/projection/MediaProjectionManagerService.java +++ b/services/core/java/com/android/server/media/projection/MediaProjectionManagerService.java @@ -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 |