From 88ea48b6cab62fd5a3b188fa556afd191555799d Mon Sep 17 00:00:00 2001 From: zlzw <583819556@qq.com> Date: Thu, 9 Mar 2023 10:26:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9Edebug=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E6=8E=A7=E5=88=B6=EF=BC=8C=E6=96=B9=E4=BE=BF=E8=B0=83=E5=87=BA?= =?UTF-8?q?=E6=97=A5=E5=BF=97=E7=94=A8=E4=BA=8E=E5=88=86=E6=9E=90=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/src/main/java/com/yunbao/common/utils/LogUtil.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/common/src/main/java/com/yunbao/common/utils/LogUtil.java b/common/src/main/java/com/yunbao/common/utils/LogUtil.java index 2d42b1b08..e05b249c5 100644 --- a/common/src/main/java/com/yunbao/common/utils/LogUtil.java +++ b/common/src/main/java/com/yunbao/common/utils/LogUtil.java @@ -150,7 +150,11 @@ public class LogUtil { public static void shareFile(Context context) { - if(true){ + try { + if (!new File(Environment.getExternalStorageDirectory().getAbsolutePath(), "pdlive.debug").exists()) { + return; + } + } catch (Exception e) { return; } if (PermissionChecker.checkCallingOrSelfPermission(context, Manifest.permission.WRITE_EXTERNAL_STORAGE) != PERMISSION_GRANTED) {