diff options
author | RoboErik <epastern@google.com> | 2014-09-02 15:54:16 -0700 |
---|---|---|
committer | RoboErik <epastern@google.com> | 2014-09-02 17:22:08 -0700 |
commit | f2133474afce7808541c92a1e5c78eb8b0950329 (patch) | |
tree | 16727abf5fa5ae8e2176220c1ee73f1b17c0126a /media | |
parent | 7a18cb5672127bf12c8edac8a327f9b706b79ff7 (diff) | |
download | frameworks_base-f2133474afce7808541c92a1e5c78eb8b0950329.zip frameworks_base-f2133474afce7808541c92a1e5c78eb8b0950329.tar.gz frameworks_base-f2133474afce7808541c92a1e5c78eb8b0950329.tar.bz2 |
Update MediaController comment to mention notification listeners
Forgot to update the comment to specify that notification listeners
may also get a MediaController from the manager.
Change-Id: Id38bcf7cb38185bfe4f99bcf8889a6415320dd36
Diffstat (limited to 'media')
-rw-r--r-- | media/java/android/media/session/MediaController.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/media/java/android/media/session/MediaController.java b/media/java/android/media/session/MediaController.java index 9641f83..12ee59e 100644 --- a/media/java/android/media/session/MediaController.java +++ b/media/java/android/media/session/MediaController.java @@ -47,8 +47,9 @@ import java.util.List; * receive updates from the session, such as metadata and play state changes. * <p> * A MediaController can be created through {@link MediaSessionManager} if you - * hold the "android.permission.MEDIA_CONTENT_CONTROL" permission or directly if - * you have a {@link MediaSession.Token} from the session owner. + * hold the "android.permission.MEDIA_CONTENT_CONTROL" permission or are an + * enabled notification listener or by getting a {@link MediaSession.Token} + * directly from the session owner. * <p> * MediaController objects are thread-safe. */ |