Update FileUtils.kt

pull/370/head
Jason Yao 4 years ago
parent 3c232ffe30
commit 4ebe5f2dea
  1. 4
      app/src/main/java/io/legado/app/utils/FileUtils.kt

@ -1,7 +1,6 @@
package io.legado.app.utils package io.legado.app.utils
import android.os.Environment import android.os.Environment
import android.util.Log
import android.webkit.MimeTypeMap import android.webkit.MimeTypeMap
import androidx.annotation.IntDef import androidx.annotation.IntDef
import io.legado.app.App import io.legado.app.App
@ -67,8 +66,7 @@ object FileUtils {
file.createNewFile() file.createNewFile()
} }
else{ else{
val result = file.delete() file.delete()
Log.d("Jason", result.toString())
file.createNewFile() file.createNewFile()
} }
return file return file

Loading…
Cancel
Save