Use ErrorActivity to notifiy about errors occourred while loading channel details
This commit is contained in:
parent
962fe9c36d
commit
ef0d562702
|
@ -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());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue