Parcourir la source

Fix wrong file path

cooperku_kdanmobile il y a 5 ans
Parent
commit
27f302e10b

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