소스 검색

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

cooperku_kdanmobile 5 년 전
부모
커밋
96741c1cae
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/main/java/com/kdanmobile/reader/copyfile/CopyFileViewModel.kt

+ 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)