找到本地书籍路径后更新bookUrl 下次重启不用再找一遍

pull/2447/head
Xwite 2 years ago
parent 3c40bddbc8
commit 8707fbadb9
  1. 3
      app/src/main/java/io/legado/app/help/book/BookExtensions.kt

@ -93,6 +93,9 @@ fun Book.getLocalUri(): Uri {
val fileDoc = treeFileDoc.find(originName, 3)
if (fileDoc != null) {
localUriCache[bookUrl] = fileDoc.uri
//更新bookUrl 重启不用再找一遍
bookUrl = fileDoc.toString()
save()
return fileDoc.uri
}
localUriCache[bookUrl] = uri

Loading…
Cancel
Save