diff --git a/app/src/main/java/com/gh/common/util/DataUtils.java b/app/src/main/java/com/gh/common/util/DataUtils.java index c77043bf7f..a7137bd3d1 100644 --- a/app/src/main/java/com/gh/common/util/DataUtils.java +++ b/app/src/main/java/com/gh/common/util/DataUtils.java @@ -102,8 +102,8 @@ public class DataUtils { CrashReport.setIsDevelopmentDevice(context, Config.DEFAULT_CHANNEL.equals(channel)); CrashReport.UserStrategy strategy = new CrashReport.UserStrategy(context); - strategy.setEnableANRCrashMonitor(false); - strategy.setEnableNativeCrashMonitor(false); + strategy.setEnableANRCrashMonitor(true); + strategy.setEnableNativeCrashMonitor(true); strategy.setAppChannel(channel); strategy.setAppVersion(PackageUtils.getVersionName()); @@ -238,18 +238,12 @@ public class DataUtils { } public static void onError(Context context, Throwable throwable) { - // MTA主动上传错误 + //bugly 作为默认处理异常的类库,已经上报了,此处不重复上报 try { - StatService.reportException(context, throwable); + CrashReport.postCatchedException(throwable); } catch (Exception e) { } -// //bugly 作为默认处理异常的类库,已经上报了,此处不重复上报 -// try { -// CrashReport.postCatchedException(throwable); -// } catch (Exception e) { -// } - //talkingdata try { TCAgent.onError(context, throwable); diff --git a/libraries/LGLibrary b/libraries/LGLibrary index 6fedc92974..f939aedbc0 160000 --- a/libraries/LGLibrary +++ b/libraries/LGLibrary @@ -1 +1 @@ -Subproject commit 6fedc9297479f2055690df91d15065003a6223ae +Subproject commit f939aedbc0c237ae8058b1c1abb91647bfa9d849