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

Commit fdf328c2 authored by Shaowei Shen's avatar Shaowei Shen Committed by Android (Google) Code Review
Browse files

Merge "[Output Switcher] Check before use MediaController" into tm-dev

parents e7ed33a5 3a458474
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;
    }