Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8a280923 authored by tibbi's avatar tibbi
Browse files

improve file scanning at copy/move

parent 492b592d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -6,7 +6,7 @@ buildscript {
        propMinSdkVersion = 16
        propTargetSdkVersion = propCompileSdkVersion
        propVersionCode = 1
        propVersionName = '3.14.7'
        propVersionName = '3.14.12'
        kotlin_version = '1.2.30'
        support_libs = '27.1.0'
    }
+4 −6
Original line number Diff line number Diff line
@@ -103,8 +103,6 @@ class CopyMoveTask(val activity: BaseSimpleActivity, val copyOnly: Boolean = fal
            activity.deleteFilesBg(mTransferredFiles) {}
        }

        val paths = mFiles.map { it.path } as ArrayList<String>
        activity.scanPaths(paths) {}
        return true
    }

@@ -242,10 +240,10 @@ class CopyMoveTask(val activity: BaseSimpleActivity, val copyOnly: Boolean = fal

            if (source.size == copiedSize) {
                mTransferredFiles.add(source)
                activity.scanPath(destination.path) {
                    if (activity.baseConfig.keepLastModified) {
                        copyOldLastModified(source.path, destination.path)
                } else {
                    activity.scanPath(destination.path) {}
                    }
                }
            }
        } catch (e: Exception) {