summaryrefslogtreecommitdiffstats
path: root/cmds/media/src
diff options
context:
space:
mode:
Diffstat (limited to 'cmds/media/src')
-rw-r--r--cmds/media/src/com/android/commands/media/Media.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmds/media/src/com/android/commands/media/Media.java b/cmds/media/src/com/android/commands/media/Media.java
index 800b925..c771f65 100644
--- a/cmds/media/src/com/android/commands/media/Media.java
+++ b/cmds/media/src/com/android/commands/media/Media.java
@@ -114,7 +114,7 @@ public class Media extends BaseCommand {
List<IBinder> sessions = mSessionService
.getSessions(null, ActivityManager.getCurrentUser());
for (IBinder session : sessions) {
- MediaController controller = MediaController.fromBinder(ISessionController.Stub
+ MediaController controller = new MediaController(ISessionController.Stub
.asInterface(session));
if (controller != null && controller.getSessionInfo().getId().equals(id)) {
ControllerMonitor monitor = new ControllerMonitor(controller);
@@ -248,7 +248,7 @@ public class Media extends BaseCommand {
List<IBinder> sessions = mSessionService
.getSessions(null, ActivityManager.getCurrentUser());
for (IBinder session : sessions) {
- MediaController controller = MediaController.fromBinder(ISessionController.Stub
+ MediaController controller = new MediaController(ISessionController.Stub
.asInterface(session));
if (controller != null) {
MediaSessionInfo info = controller.getSessionInfo();