do not rescan paths after copy/move in some cases

This commit is contained in:
tibbi 2019-11-09 23:18:58 +01:00
parent a4d2ad8346
commit 019b93e2c6
2 changed files with 3 additions and 5 deletions

View file

@ -7,7 +7,7 @@ buildscript {
propMinSdkVersion = 21
propTargetSdkVersion = propCompileSdkVersion
propVersionCode = 1
propVersionName = '5.19.9'
propVersionName = '5.19.10'
kotlin_version = '1.3.50'
}

View file

@ -360,10 +360,8 @@ abstract class BaseSimpleActivity : AppCompatActivity() {
if (updatedPaths.isEmpty()) {
copyMoveListener.copySucceeded(false, fileCountToCopy == 0, destination)
} else {
rescanPaths(updatedPaths) {
runOnUiThread {
copyMoveListener.copySucceeded(false, fileCountToCopy <= updatedPaths.size, destination)
}
runOnUiThread {
copyMoveListener.copySucceeded(false, fileCountToCopy <= updatedPaths.size, destination)
}
}
}