ソースを参照

Fix: should stop all actions after onCopySuccess() is called

cooperku_kdanmobile 5 年 前
コミット
96741c1cae

+ 1 - 0
src/main/java/com/kdanmobile/reader/copyfile/CopyFileViewModel.kt

@@ -67,6 +67,7 @@ class CopyFileViewModel(applicationContext: Context,
 
             if (isSrcFileEqualsDstFile()) {
                 onCopySuccess()
+                return
             }
 
             val fullFileSize = Math.max(1, source?.getFileSize() ?: 1)