pull/66/head
kunfei 5 years ago
parent d81bb4c403
commit 6326a28a1c
  1. 4
      app/src/main/java/io/legado/app/ui/book/source/manage/BookSourceViewModel.kt

@ -149,9 +149,11 @@ class BookSourceViewModel(application: Application) : BaseViewModel(application)
importSource(file.readText(), finally)
} else {
withContext(Dispatchers.Main) {
finally("文件无法打开")
finally("打开文件出错")
}
}
}.onError {
finally(it.localizedMessage ?: "打开文件出错")
}
}

Loading…
Cancel
Save