[Output Switcher] Check before use MediaController
Bug: 224715111 Test: verified on device Change-Id: I4bce60d21f10f393f1711ef7f1ccceba8a39d9fb
This commit is contained in:
committed by
Shaowei Shen
parent
fcd56e60dd
commit
3a45847457
@@ -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