diff --git a/app/src/main/java/com/halo/assistant/AppController.java b/app/src/main/java/com/halo/assistant/AppController.java index 2617d9ef6c..7e2d3feaee 100644 --- a/app/src/main/java/com/halo/assistant/AppController.java +++ b/app/src/main/java/com/halo/assistant/AppController.java @@ -98,7 +98,7 @@ public class AppController extends TinkerApplication { DataUtils.init(this, BuildConfig.DEBUG, mChannel); // 注册回调以用于做各种统计 - registerActivityLifecycleCallbacks(new GHActivityLifecycleCallbacksImpl()); +// registerActivityLifecycleCallbacks(new GHActivityLifecycleCallbacksImpl()); //初始化Fresco Fresco.initialize(this); diff --git a/app/src/release/java/com/gh/gamecenter/Injection.java b/app/src/release/java/com/gh/gamecenter/Injection.java index a7d6e634ea..c25c7dbe4d 100644 --- a/app/src/release/java/com/gh/gamecenter/Injection.java +++ b/app/src/release/java/com/gh/gamecenter/Injection.java @@ -15,8 +15,8 @@ import okhttp3.OkHttpClient; public class Injection { public static boolean appInit(Application application) { -// AppUncaughtHandler appUncaughtHandler = new AppUncaughtHandler(application); -// Thread.setDefaultUncaughtExceptionHandler(appUncaughtHandler); + AppUncaughtHandler appUncaughtHandler = new AppUncaughtHandler(application); + Thread.setDefaultUncaughtExceptionHandler(appUncaughtHandler); return true; }