mirror of
https://github.com/gedoor/legado.git
synced 2024-08-30 09:23:26 +08:00
[skip ci]
This commit is contained in:
parent
c6d702c948
commit
d56f46624e
@ -286,7 +286,7 @@ class BookInfoViewModel(application: Application) : BaseViewModel(application) {
|
||||
|
||||
fun importBook(fileDoc: FileDoc) {
|
||||
val uri = LocalBook.saveBookFile(
|
||||
fileDoc.uri.inputStream(context).getOrThrow()
|
||||
fileDoc.uri.inputStream(context).getOrThrow(),
|
||||
fileDoc.name
|
||||
)
|
||||
LocalBook.importFile(uri).let { changeToLocalBook(it) }
|
||||
|
Loading…
Reference in New Issue
Block a user