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())
.subscribeOn(Schedulers.io()).subscribe();
openChannelFragment(fragment, item, result.getUploaderUrl());
}, throwable -> Toast.makeText(
// TODO: Open the Error Activity
fragment.getContext(),
R.string.error_show_channel_details,
Toast.LENGTH_SHORT
).show());
}, throwable -> ErrorUtil.openActivity(
fragment.requireContext(),
new ErrorInfo(
throwable,
UserAction.REQUESTED_CHANNEL,
url,
serviceId
)));
} else {
openChannelFragment(fragment, item, item.getUploaderUrl());
}