From eb9a3d6b616e829eb286de6525e770f9e90da93d Mon Sep 17 00:00:00 2001 From: qwq233 Date: Sun, 20 Oct 2024 23:25:29 +0800 Subject: [PATCH] fix: ensure log file exists before share log Signed-off-by: qwq233 --- TMessagesProj/src/main/java/top/qwq2333/nullgram/utils/Log.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TMessagesProj/src/main/java/top/qwq2333/nullgram/utils/Log.kt b/TMessagesProj/src/main/java/top/qwq2333/nullgram/utils/Log.kt index b13ebb745..f2d4871fc 100644 --- a/TMessagesProj/src/main/java/top/qwq2333/nullgram/utils/Log.kt +++ b/TMessagesProj/src/main/java/top/qwq2333/nullgram/utils/Log.kt @@ -118,7 +118,7 @@ object Log { } @JvmStatic fun shareLog(context: Context) { - ShareUtil.shareFile(context, logFile) + if (logFile.exists()) ShareUtil.shareFile(context, logFile) } @JvmStatic