Solving a bug that prevented playback when the user have no google APIs on his device.

This commit is contained in:
Anonymus Raccoon
2019-07-08 17:47:34 +02:00
parent 2f98334020
commit 3e49c438b5

View File

@@ -227,7 +227,7 @@ namespace Opus.Api.Services
RegisterReceiver(noisyReceiver, new IntentFilter(AudioManager.ActionAudioBecomingNoisy));
noisyRegistered = true;
RemotePlayer = MainActivity.CastContext.SessionManager.CurrentCastSession?.RemoteMediaClient;
RemotePlayer = MainActivity.CastContext?.SessionManager.CurrentCastSession?.RemoteMediaClient;
if(RemotePlayer != null)
{
if (CastCallback == null)