pull/1751/head
kunfei 3 years ago
parent cbcbd3bb11
commit 19cb577450
  1. 2
      app/src/main/java/io/legado/app/ui/association/FileAssociationViewModel.kt

@ -47,7 +47,7 @@ class FileAssociationViewModel(application: Application) : BaseAssociationViewMo
importHttpTTS(content, finally)
else -> errorLiveData.postValue("格式不对")
}
uri.toString().matches(bookFileRegex) -> {
(uri.path ?: uri.toString()).matches(bookFileRegex) -> {
importBookLiveData.postValue(uri)
}
else -> {

Loading…
Cancel
Save