diff --git a/app/src/main/java/io/legado/app/ui/book/read/ReadBookActivity.kt b/app/src/main/java/io/legado/app/ui/book/read/ReadBookActivity.kt index 9986f3ec9..e3b3b2c7b 100644 --- a/app/src/main/java/io/legado/app/ui/book/read/ReadBookActivity.kt +++ b/app/src/main/java/io/legado/app/ui/book/read/ReadBookActivity.kt @@ -209,7 +209,10 @@ class ReadBookActivity : ReadBookBaseActivity(), } launch { menu.findItem(R.id.menu_get_progress)?.isVisible = - withContext(IO) { AppWebDav.initWebDav() } + withContext(IO) { + runCatching { AppWebDav.initWebDav() } + .getOrElse { false } + } } } }