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;