@@ -318,21 +318,30 @@ private void fetchStreamsSize() {
318318 == R .id .video_button ) {
319319 setupVideoSpinner ();
320320 }
321- }, throwable -> Log .e (TAG , "Throwable " + throwable .getMessage ())));
321+ }, throwable -> ErrorActivity .reportErrorInSnackbar (context ,
322+ new ErrorInfo (throwable , UserAction .DOWNLOAD_OPEN_DIALOG ,
323+ "Downloading video stream size" ,
324+ currentInfo .getServiceId ()))));
322325 disposables .add (StreamSizeWrapper .fetchSizeForWrapper (wrappedAudioStreams )
323326 .subscribe (result -> {
324327 if (dialogBinding .videoAudioGroup .getCheckedRadioButtonId ()
325328 == R .id .audio_button ) {
326329 setupAudioSpinner ();
327330 }
328- }, throwable -> Log .e (TAG , "Throwable " + throwable .getMessage ())));
331+ }, throwable -> ErrorActivity .reportErrorInSnackbar (context ,
332+ new ErrorInfo (throwable , UserAction .DOWNLOAD_OPEN_DIALOG ,
333+ "Downloading audio stream size" ,
334+ currentInfo .getServiceId ()))));
329335 disposables .add (StreamSizeWrapper .fetchSizeForWrapper (wrappedSubtitleStreams )
330336 .subscribe (result -> {
331337 if (dialogBinding .videoAudioGroup .getCheckedRadioButtonId ()
332338 == R .id .subtitle_button ) {
333339 setupSubtitleSpinner ();
334340 }
335- }, throwable -> Log .e (TAG , "Throwable " + throwable .getMessage ())));
341+ }, throwable -> ErrorActivity .reportErrorInSnackbar (context ,
342+ new ErrorInfo (throwable , UserAction .DOWNLOAD_OPEN_DIALOG ,
343+ "Downloading subtitle stream size" ,
344+ currentInfo .getServiceId ()))));
336345 }
337346
338347 @ Override
0 commit comments