mirror of
https://github.com/gedoor/legado.git
synced 2025-08-10 00:52:30 +00:00
优化
This commit is contained in:
@@ -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--
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user