mirror of
https://github.com/gedoor/legado.git
synced 2024-08-30 09:23:26 +08:00
文件类书源解压位置改到保存书籍目录的地方
This commit is contained in:
parent
4376cc34c1
commit
c6d702c948
@ -286,7 +286,7 @@ class BookInfoViewModel(application: Application) : BaseViewModel(application) {
|
||||
|
||||
fun importBook(fileDoc: FileDoc) {
|
||||
val uri = LocalBook.saveBookFile(
|
||||
fileDoc.uri.inputStream(context),
|
||||
fileDoc.uri.inputStream(context).getOrThrow()
|
||||
fileDoc.name
|
||||
)
|
||||
LocalBook.importFile(uri).let { changeToLocalBook(it) }
|
||||
|
Loading…
Reference in New Issue
Block a user