summaryrefslogtreecommitdiffstats
path: root/cmds/media
diff options
context:
space:
mode:
authorRoboErik <epastern@google.com>2014-08-13 15:00:21 -0700
committerRoboErik <epastern@google.com>2014-08-13 15:00:21 -0700
commit24762bffc3358762666079cd802040a316b3260d (patch)
tree5035aae100709592b619f8c73eb24450af6c6180 /cmds/media
parentb3cca876c2e11b865cb4f83abe2c48a60b95af5b (diff)
downloadframeworks_base-24762bffc3358762666079cd802040a316b3260d.zip
frameworks_base-24762bffc3358762666079cd802040a316b3260d.tar.gz
frameworks_base-24762bffc3358762666079cd802040a316b3260d.tar.bz2
Add an onSessionDestroyed callback to MediaController.Callback
Callbacks on the controller need to know when the session ceases to exist. bug:17009030 Change-Id: I0f1c1cfc51f7dd2203955287cc269667d3765ee4
Diffstat (limited to 'cmds/media')
-rw-r--r--cmds/media/src/com/android/commands/media/Media.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/cmds/media/src/com/android/commands/media/Media.java b/cmds/media/src/com/android/commands/media/Media.java
index d9faf4c..b13b009 100644
--- a/cmds/media/src/com/android/commands/media/Media.java
+++ b/cmds/media/src/com/android/commands/media/Media.java
@@ -178,6 +178,13 @@ public class Media extends BaseCommand {
public ControllerMonitor(ISessionController controller) {
mController = controller;
}
+
+ @Override
+ public void onSessionDestroyed() {
+ System.out.println("onSessionDestroyed. Enter q to quit.");
+
+ }
+
@Override
public void onEvent(String event, Bundle extras) {
System.out.println("onSessionEvent event=" + event + ", extras=" + extras);