Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 16f7b4a0 authored by Shaowei Shen's avatar Shaowei Shen Committed by Automerger Merge Worker
Browse files

Merge "[Output switcher] Check current device" into tm-dev am: 49ab8398 am: 3add1e63

parents 565b6807 3add1e63
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -88,8 +88,11 @@ public class MediaOutputDialog extends MediaOutputBaseDialog {

    @Override
    int getStopButtonVisibility() {
        boolean isActiveRemoteDevice = mMediaOutputController.isActiveRemoteDevice(
        boolean isActiveRemoteDevice = false;
        if (mMediaOutputController.getCurrentConnectedMediaDevice() != null) {
            isActiveRemoteDevice = mMediaOutputController.isActiveRemoteDevice(
                    mMediaOutputController.getCurrentConnectedMediaDevice());
        }
        boolean isBroadCastSupported = isBroadcastSupported();

        return (isActiveRemoteDevice || isBroadCastSupported) ? View.VISIBLE : View.GONE;