diff options
author | Michael Wright <michaelwr@google.com> | 2015-02-06 14:08:13 -0800 |
---|---|---|
committer | Michael Wright <michaelwr@google.com> | 2015-02-06 14:08:13 -0800 |
commit | 05aab5810a5f0296c3650f104c58479b2765c0b7 (patch) | |
tree | 5537f7f5551ada16bc4d21af4dc78e1952311e2d | |
parent | 6cad6513e0058467d11f4cf99519cf79eb65d48f (diff) | |
download | frameworks_base-05aab5810a5f0296c3650f104c58479b2765c0b7.zip frameworks_base-05aab5810a5f0296c3650f104c58479b2765c0b7.tar.gz frameworks_base-05aab5810a5f0296c3650f104c58479b2765c0b7.tar.bz2 |
Stop active media projections on user switch.
Bug: 19278080
Change-Id: I63cc8aa12954d4de257b793967d3845a6f86dc3f
-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 |