Use ErrorActivity to notifiy about errors occourred while loading channel details

This commit is contained in:
TobiGr 2021-12-23 14:12:22 +01:00
parent 962fe9c36d
commit ef0d562702
1 changed files with 8 additions and 6 deletions

View File

@ -59,12 +59,14 @@ public enum StreamDialogDefaultEntry {
.setUploaderUrl(serviceId, url, result.getUploaderUrl()) .setUploaderUrl(serviceId, url, result.getUploaderUrl())
.subscribeOn(Schedulers.io()).subscribe(); .subscribeOn(Schedulers.io()).subscribe();
openChannelFragment(fragment, item, result.getUploaderUrl()); openChannelFragment(fragment, item, result.getUploaderUrl());
}, throwable -> Toast.makeText( }, throwable -> ErrorUtil.openActivity(
// TODO: Open the Error Activity fragment.requireContext(),
fragment.getContext(), new ErrorInfo(
R.string.error_show_channel_details, throwable,
Toast.LENGTH_SHORT UserAction.REQUESTED_CHANNEL,
).show()); url,
serviceId
)));
} else { } else {
openChannelFragment(fragment, item, item.getUploaderUrl()); openChannelFragment(fragment, item, item.getUploaderUrl());
} }