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

Commit 3a458474 authored by shaoweishen's avatar shaoweishen Committed by Shaowei Shen
Browse files

[Output Switcher] Check before use MediaController

Bug: 224715111
Test: verified on device
Change-Id: I4bce60d21f10f393f1711ef7f1ccceba8a39d9fb
parent fcd56e60
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -637,7 +637,8 @@ public class MediaOutputController implements LocalMediaManager.DeviceCallback,
    }

    private boolean isPlayBackInfoLocal() {
        return mMediaController.getPlaybackInfo() != null
        return mMediaController != null
                && mMediaController.getPlaybackInfo() != null
                && mMediaController.getPlaybackInfo().getPlaybackType()
                == MediaController.PlaybackInfo.PLAYBACK_TYPE_LOCAL;
    }