优化
This commit is contained in:
1 parent
8a5c71dda2
commit
ebb4301599
1 file changed
-4
@@ -122,11 +122,9 @@ class CacheViewModel(application: Application) : BaseViewModel(application) {
|
||||
exportMsg[book.bookUrl] = context.getString(R.string.export_success)
|
||||
upAdapterLiveData.postValue(book.bookUrl)
|
||||
}.onFinally {
|
||||
mutex.withLock {
|
||||
exportNumber--
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Suppress("BlockingMethodInNonBlockingContext")
|
||||
private suspend fun export(doc: DocumentFile, book: Book) {
|
||||
@@ -287,11 +285,9 @@ class CacheViewModel(application: Application) : BaseViewModel(application) {
|
||||
exportMsg[book.bookUrl] = context.getString(R.string.export_success)
|
||||
upAdapterLiveData.postValue(book.bookUrl)
|
||||
}.onFinally {
|
||||
mutex.withLock {
|
||||
exportNumber--
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Suppress("BlockingMethodInNonBlockingContext")
|
||||
private suspend fun exportEpub(doc: DocumentFile, book: Book) {
|
||||
|
||||
Reference in new issue
Block a user