소스 검색

Fix wrong file path

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

+ 3 - 0
src/main/java/com/kdanmobile/reader/copyfile/CopyFileInfoFactory.kt

@@ -42,6 +42,9 @@ class CopyFileInfoFactory {
             uri.path?.also {
                 fixFilePath(it)
             }
+            if (null == filePath) {
+                fixFilePath(uri.toString())
+            }
         }
         if (null != filePath && !File(filePath).exists()) {
             filePath = Uri.decode(filePath)