summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorJohn Spurlock <jspurlock@google.com>2015-03-09 23:13:57 -0400
committerJohn Spurlock <jspurlock@google.com>2015-03-10 13:07:19 -0400
commitbfa98599b79b2d48209d5ab79055d5ac599c7f04 (patch)
tree7aa2475524c290b0575fe13a5bdc5d945be081ae /services
parent488caeb70293b7c70e9ce128fc002a0666340fb0 (diff)
downloadframeworks_base-bfa98599b79b2d48209d5ab79055d5ac599c7f04.zip
frameworks_base-bfa98599b79b2d48209d5ab79055d5ac599c7f04.tar.gz
frameworks_base-bfa98599b79b2d48209d5ab79055d5ac599c7f04.tar.bz2
MediaSession: Notify PlaybackInfo callbacks when playback type changes.
Bug: 19665979 Change-Id: I506a71330ca04a678027f5969638fd1685326b2d
Diffstat (limited to 'services')
-rw-r--r--services/core/java/com/android/server/media/MediaSessionRecord.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/services/core/java/com/android/server/media/MediaSessionRecord.java b/services/core/java/com/android/server/media/MediaSessionRecord.java
index 5363968..b5036db 100644
--- a/services/core/java/com/android/server/media/MediaSessionRecord.java
+++ b/services/core/java/com/android/server/media/MediaSessionRecord.java
@@ -808,6 +808,7 @@ public class MediaSessionRecord implements IBinder.DeathRecipient {
}
if (typeChanged) {
mService.onSessionPlaybackTypeChanged(MediaSessionRecord.this);
+ mHandler.post(MessageHandler.MSG_UPDATE_VOLUME);
}
}
@@ -822,6 +823,7 @@ public class MediaSessionRecord implements IBinder.DeathRecipient {
}
if (typeChanged) {
mService.onSessionPlaybackTypeChanged(MediaSessionRecord.this);
+ mHandler.post(MessageHandler.MSG_UPDATE_VOLUME);
}
}
}