diff --git a/app/src/main/java/com/shayu/phonelive/AppContext.java b/app/src/main/java/com/shayu/phonelive/AppContext.java index c22bd16f7..3cf6b5251 100644 --- a/app/src/main/java/com/shayu/phonelive/AppContext.java +++ b/app/src/main/java/com/shayu/phonelive/AppContext.java @@ -321,6 +321,9 @@ public class AppContext extends CommonAppContext { .register(this); } public void registerFirebaseCrash(){ + if (!CommonAppConfig.IS_UPLOAD_ERROR_LOG) { + return; + } FirebaseAnalytics.getInstance(this); FirebaseApp.initializeApp(this); FirebaseCrashlytics.getInstance().setUserId(CommonAppConfig.getInstance().getUid());