mirror of
https://github.com/gedoor/legado.git
synced 2024-08-30 09:23:26 +08:00
优化
This commit is contained in:
parent
dbdabcbbb7
commit
4843b9e1e7
@ -122,9 +122,7 @@ class CacheViewModel(application: Application) : BaseViewModel(application) {
|
||||
exportMsg[book.bookUrl] = context.getString(R.string.export_success)
|
||||
upAdapterLiveData.postValue(book.bookUrl)
|
||||
}.onFinally {
|
||||
mutex.withLock {
|
||||
exportNumber--
|
||||
}
|
||||
exportNumber--
|
||||
}
|
||||
}
|
||||
|
||||
@ -287,9 +285,7 @@ class CacheViewModel(application: Application) : BaseViewModel(application) {
|
||||
exportMsg[book.bookUrl] = context.getString(R.string.export_success)
|
||||
upAdapterLiveData.postValue(book.bookUrl)
|
||||
}.onFinally {
|
||||
mutex.withLock {
|
||||
exportNumber--
|
||||
}
|
||||
exportNumber--
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user