summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Wright <michaelwr@google.com>2015-02-11 18:53:36 +0000
committerandroid-build-merger <android-build-merger@google.com>2015-02-11 18:53:36 +0000
commitd08860690c1aa087871e14c841524e7ce3c0a4f9 (patch)
tree9c5a8df7fe979d772902053887cc9ecfdef7888a
parent0f5e1975d317a76e5db4c79bf60641733a375a1e (diff)
parentfa5f1fbc50050d26535e969ac68b04d318bbaf03 (diff)
downloadframeworks_base-d08860690c1aa087871e14c841524e7ce3c0a4f9.zip
frameworks_base-d08860690c1aa087871e14c841524e7ce3c0a4f9.tar.gz
frameworks_base-d08860690c1aa087871e14c841524e7ce3c0a4f9.tar.bz2
Merge "Stop active media projections on user switch." into lmp-mr1-dev automerge: 3292c0e automerge: 40bd8f4
automerge: fa5f1fb * commit 'fa5f1fbc50050d26535e969ac68b04d318bbaf03': Stop active media projections on user switch.
-rw-r--r--services/core/java/com/android/server/media/projection/MediaProjectionManagerService.java5
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