commit | 51fa6bcb22a52b283f6d0756d286101f0d354f54 | [log] [tgz] |
---|---|---|
author | RoboErik <epastern@google.com> | Fri Jun 20 14:59:58 2014 -0700 |
committer | RoboErik <epastern@google.com> | Mon Jun 23 16:29:52 2014 -0700 |
tree | 094fc96700b317f1702929378c921c28c40ac566 | |
parent | bbc9cd32d70343ff0144fe706b4090e776ec5a0c [diff] [blame] |
b/15757378 Expose APIs for listening to active sessions This allows apps that are registered notification listeners to listen to the set of active sessions. Change-Id: I1e108951a5049d138208e88b155c0ec9b95fbdb0
diff --git a/services/core/java/com/android/server/media/MediaSessionService.java b/services/core/java/com/android/server/media/MediaSessionService.java index 685717f..c0b7d68 100644 --- a/services/core/java/com/android/server/media/MediaSessionService.java +++ b/services/core/java/com/android/server/media/MediaSessionService.java
@@ -383,6 +383,9 @@ // You may not access another user's content as an enabled listener. return false; } + if (DEBUG) { + Log.d(TAG, "Checking if enabled notification listener " + compName); + } if (compName != null) { final String enabledNotifListeners = Settings.Secure.getStringForUser(mContentResolver, Settings.Secure.ENABLED_NOTIFICATION_LISTENERS,