Merge "[Output Switcher] Check before use MediaController" into tm-dev
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user