优化
This commit is contained in:
1 parent
8a5c71dda2
commit
ebb4301599
1 file changed
+2
-6
@@ -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