优化
This commit is contained in:
1 parent
5130b2daa7
commit
15adce75be
1 file changed
+2
-2
@@ -65,7 +65,7 @@ fun AppCompatActivity.readUri(
|
||||
}
|
||||
} catch (e: Exception) {
|
||||
e.printOnDebug()
|
||||
toastOnUi("读取Uri出错\n${e.localizedMessage}")
|
||||
AppLog.put("读取Uri出错\n$e", e, true)
|
||||
if (e is SecurityException) {
|
||||
throw e
|
||||
}
|
||||
@@ -106,7 +106,7 @@ fun Fragment.readUri(uri: Uri?, success: (fileDoc: FileDoc, inputStream: InputSt
|
||||
}
|
||||
} catch (e: Exception) {
|
||||
e.printOnDebug()
|
||||
toastOnUi("读取Uri出错\n${e.localizedMessage}")
|
||||
AppLog.put("读取Uri出错\n$e", e, true)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user