Remove non cancellable call when trying to init reader
This commit is contained in:
@@ -180,7 +180,7 @@ class ReaderActivity : BaseActivity() {
|
|||||||
}
|
}
|
||||||
NotificationReceiver.dismissNotification(this, manga.hashCode(), Notifications.ID_NEW_CHAPTERS)
|
NotificationReceiver.dismissNotification(this, manga.hashCode(), Notifications.ID_NEW_CHAPTERS)
|
||||||
|
|
||||||
lifecycleScope.launchNonCancellable {
|
lifecycleScope.launch {
|
||||||
val initResult = viewModel.init(manga, chapter)
|
val initResult = viewModel.init(manga, chapter)
|
||||||
if (!initResult.getOrDefault(false)) {
|
if (!initResult.getOrDefault(false)) {
|
||||||
val exception = initResult.exceptionOrNull() ?: IllegalStateException("Unknown err")
|
val exception = initResult.exceptionOrNull() ?: IllegalStateException("Unknown err")
|
||||||
|
|||||||
Reference in New Issue
Block a user