Horis 2 年之前
父節點
當前提交
15adce75be
共有 1 個文件被更改,包括 2 次插入 和 2 次删除
  1. 2 2
      app/src/main/java/io/legado/app/utils/UriExtensions.kt

+ 2 - 2
app/src/main/java/io/legado/app/utils/UriExtensions.kt

@@ -65,7 +65,7 @@ fun AppCompatActivity.readUri(
         }
         }
     } catch (e: Exception) {
     } catch (e: Exception) {
         e.printOnDebug()
         e.printOnDebug()
-        toastOnUi("读取Uri出错\n${e.localizedMessage}")
+        AppLog.put("读取Uri出错\n$e", e, true)
         if (e is SecurityException) {
         if (e is SecurityException) {
             throw e
             throw e
         }
         }
@@ -106,7 +106,7 @@ fun Fragment.readUri(uri: Uri?, success: (fileDoc: FileDoc, inputStream: InputSt
         }
         }
     } catch (e: Exception) {
     } catch (e: Exception) {
         e.printOnDebug()
         e.printOnDebug()
-        toastOnUi("读取Uri出错\n${e.localizedMessage}")
+        AppLog.put("读取Uri出错\n$e", e, true)
     }
     }
 }
 }