From 22225eece6e39af4403115f130c9b8c7f0be6a69 Mon Sep 17 00:00:00 2001 From: zlzw <583819556@qq.com> Date: Wed, 26 Oct 2022 11:34:50 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4AppContext=E5=8F=AA=E5=9C=A8?= =?UTF-8?q?=E4=B8=BB=E7=BA=BF=E7=A8=8B=E4=B8=AD=E5=88=9D=E5=A7=8B=E5=8C=96?= =?UTF-8?q?=20=E6=96=B0=E5=A2=9Ecrashlytics=E7=9A=84=E6=8E=A7=E5=88=B6?= =?UTF-8?q?=E5=BC=80=E5=85=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/AndroidManifest.xml | 4 +++- app/src/main/java/com/shayu/phonelive/AppContext.java | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index f178f1635..5d4891e33 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -151,7 +151,9 @@ - + diff --git a/app/src/main/java/com/shayu/phonelive/AppContext.java b/app/src/main/java/com/shayu/phonelive/AppContext.java index 3cf6b5251..08b730797 100644 --- a/app/src/main/java/com/shayu/phonelive/AppContext.java +++ b/app/src/main/java/com/shayu/phonelive/AppContext.java @@ -129,6 +129,9 @@ public class AppContext extends CommonAppContext { public void onCreate() { super.onCreate(); //注册全局异常捕获 + if(!isMainProcess()){ + return; + } registerError(); registerFirebaseCrash(); sInstance = this;