diff options
author | Martin Fietz <martin.fietz@gmail.com> | 2017-09-23 10:22:10 +0200 |
---|---|---|
committer | Martin Fietz <martin.fietz@gmail.com> | 2017-09-23 10:22:10 +0200 |
commit | 7c6a27387e99310688de038950d1a8b1a584159a (patch) | |
tree | 378c71224266cafe18d6c533aa8a09b7c2c08652 /app/src/play/java/de/danoeh/antennapod | |
parent | d4eab1581b0c63b10d0d54d5630336c60898803f (diff) | |
download | AntennaPod-7c6a27387e99310688de038950d1a8b1a584159a.zip |
Fix CustomMRControllerDialog
Diffstat (limited to 'app/src/play/java/de/danoeh/antennapod')
-rw-r--r-- | app/src/play/java/de/danoeh/antennapod/dialog/CustomMRControllerDialog.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/src/play/java/de/danoeh/antennapod/dialog/CustomMRControllerDialog.java b/app/src/play/java/de/danoeh/antennapod/dialog/CustomMRControllerDialog.java index 93ec4e3f0..7b07d3f84 100644 --- a/app/src/play/java/de/danoeh/antennapod/dialog/CustomMRControllerDialog.java +++ b/app/src/play/java/de/danoeh/antennapod/dialog/CustomMRControllerDialog.java @@ -354,14 +354,15 @@ public class CustomMRControllerDialog extends MediaRouteControllerDialog { boolean showTitle = false; boolean showSubtitle = false; - if (route.getPresentationDisplayId() != MediaRouter.RouteInfo.PRESENTATION_DISPLAY_ID_NONE) { + if (route.getPresentationDisplay() != null && + route.getPresentationDisplay().getDisplayId() != MediaRouter.RouteInfo.PRESENTATION_DISPLAY_ID_NONE) { // The user is currently casting screen. titleView.setText(android.support.v7.mediarouter.R.string.mr_controller_casting_screen); showTitle = true; } else if (state == null || state.getState() == PlaybackStateCompat.STATE_NONE) { // Show "No media selected" as we don't yet know the playback state. // (Only exception is bluetooth where we don't show anything.) - if (!route.isDeviceTypeBluetooth()) { + if (!route.isBluetooth()) { titleView.setText(android.support.v7.mediarouter.R.string.mr_controller_no_media_selected); showTitle = true; } |