|
@@ -5,7 +5,6 @@ import android.content.Intent
|
|
|
import android.net.Uri
|
|
|
import com.kdanmobile.reader.utils.UriToPathUtil
|
|
|
import java.io.File
|
|
|
-import java.io.FileNotFoundException
|
|
|
import java.net.URLEncoder
|
|
|
|
|
|
/**
|
|
@@ -117,7 +116,7 @@ class CopyFileInfoFactory {
|
|
|
val assetFileDescriptor = applicationContext.contentResolver.openAssetFileDescriptor(fileUri, "r")
|
|
|
assetFileDescriptor?.close()
|
|
|
true
|
|
|
- } catch (e: FileNotFoundException) {
|
|
|
+ } catch (e: Exception) {
|
|
|
false
|
|
|
}
|
|
|
}
|