소스 검색

use MainApp.getStoragePath()

Signed-off-by: alperozturk <alper_ozturk@proton.me>
alperozturk 9 달 전
부모
커밋
a258734da9
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      app/src/main/java/com/nextcloud/client/jobs/InternalTwoWaySyncWork.kt

+ 1 - 1
app/src/main/java/com/nextcloud/client/jobs/InternalTwoWaySyncWork.kt

@@ -83,7 +83,7 @@ class InternalTwoWaySyncWork(
 
     @Suppress("TooGenericExceptionCaught")
     private fun checkFreeSpace(folder: OCFile): Result? {
-        val storagePath = folder.storagePath ?: return null
+        val storagePath = folder.storagePath ?: MainApp.getStoragePath()
         val file = File(storagePath)
 
         if (!file.exists()) return null