protected override void OnStop() { base.OnStop(); LogHelper.Debug(Tag, "Activity onStop"); SupportMediaController?.UnregisterCallback(mediaControllerCallback); mediaBrowser.Disconnect(); }
protected override void OnStop() { base.OnStop(); var mediaBrowser = MediaBrowser; if (mediaBrowser != null && mediaBrowser.IsConnected && mediaId != null) { mediaBrowser.Unsubscribe(mediaId); } SupportMediaController?.UnregisterCallback(mediaControllerCallback); }
protected override void OnStop() { base.OnStop(); LogHelper.Debug(Tag, "Activity onStop"); SupportMediaController?.UnregisterCallback(mediaControllerCallback); if (mediaBrowser != null && mediaBrowser.IsConnected && mediaId != null) { mediaBrowser.Unsubscribe(mediaId); } mediaBrowser?.Disconnect(); }
protected override void OnStop() { base.OnStop(); SupportMediaController?.UnregisterCallback(callBack); MediaBrowser.Disconnect(); }