use of android.media.session.MediaController in project android_frameworks_base by crdroidandroid.
the class PipControlsView method updateMediaController.
private void updateMediaController() {
MediaController newController = mPipManager.getMediaController();
if (mMediaController == newController) {
return;
}
if (mMediaController != null) {
mMediaController.unregisterCallback(mMediaControllerCallback);
}
mMediaController = newController;
if (mMediaController != null) {
mMediaController.registerCallback(mMediaControllerCallback);
}
updatePlayPauseView();
}
Aggregations