user can report the error
This commit is contained in:
parent
a70d933edf
commit
4a496c1962
1 changed files with 12 additions and 3 deletions
|
|
@ -318,21 +318,30 @@ public class DownloadDialog extends DialogFragment
|
||||||
== R.id.video_button) {
|
== R.id.video_button) {
|
||||||
setupVideoSpinner();
|
setupVideoSpinner();
|
||||||
}
|
}
|
||||||
}, throwable -> Log.e(TAG, "Throwable " + throwable.getMessage())));
|
}, throwable -> ErrorActivity.reportErrorInSnackbar(context,
|
||||||
|
new ErrorInfo(throwable, UserAction.DOWNLOAD_OPEN_DIALOG,
|
||||||
|
"Downloading video stream size",
|
||||||
|
currentInfo.getServiceId()))));
|
||||||
disposables.add(StreamSizeWrapper.fetchSizeForWrapper(wrappedAudioStreams)
|
disposables.add(StreamSizeWrapper.fetchSizeForWrapper(wrappedAudioStreams)
|
||||||
.subscribe(result -> {
|
.subscribe(result -> {
|
||||||
if (dialogBinding.videoAudioGroup.getCheckedRadioButtonId()
|
if (dialogBinding.videoAudioGroup.getCheckedRadioButtonId()
|
||||||
== R.id.audio_button) {
|
== R.id.audio_button) {
|
||||||
setupAudioSpinner();
|
setupAudioSpinner();
|
||||||
}
|
}
|
||||||
}, throwable -> Log.e(TAG, "Throwable " + throwable.getMessage())));
|
}, throwable -> ErrorActivity.reportErrorInSnackbar(context,
|
||||||
|
new ErrorInfo(throwable, UserAction.DOWNLOAD_OPEN_DIALOG,
|
||||||
|
"Downloading audio stream size",
|
||||||
|
currentInfo.getServiceId()))));
|
||||||
disposables.add(StreamSizeWrapper.fetchSizeForWrapper(wrappedSubtitleStreams)
|
disposables.add(StreamSizeWrapper.fetchSizeForWrapper(wrappedSubtitleStreams)
|
||||||
.subscribe(result -> {
|
.subscribe(result -> {
|
||||||
if (dialogBinding.videoAudioGroup.getCheckedRadioButtonId()
|
if (dialogBinding.videoAudioGroup.getCheckedRadioButtonId()
|
||||||
== R.id.subtitle_button) {
|
== R.id.subtitle_button) {
|
||||||
setupSubtitleSpinner();
|
setupSubtitleSpinner();
|
||||||
}
|
}
|
||||||
}, throwable -> Log.e(TAG, "Throwable " + throwable.getMessage())));
|
}, throwable -> ErrorActivity.reportErrorInSnackbar(context,
|
||||||
|
new ErrorInfo(throwable, UserAction.DOWNLOAD_OPEN_DIALOG,
|
||||||
|
"Downloading subtitle stream size",
|
||||||
|
currentInfo.getServiceId()))));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue