From 57d5c970cc8d6a96c18c66ee17c747704ed1da87 Mon Sep 17 00:00:00 2001 From: xtaodada Date: Tue, 20 Aug 2024 22:06:22 +0800 Subject: [PATCH] fix: load sentry after init native libs --- .../main/java/org/telegram/messenger/ApplicationLoader.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/TMessagesProj/src/main/java/org/telegram/messenger/ApplicationLoader.java b/TMessagesProj/src/main/java/org/telegram/messenger/ApplicationLoader.java index 35801f40e..b98f0edad 100644 --- a/TMessagesProj/src/main/java/org/telegram/messenger/ApplicationLoader.java +++ b/TMessagesProj/src/main/java/org/telegram/messenger/ApplicationLoader.java @@ -299,8 +299,6 @@ public class ApplicationLoader extends Application { super.onCreate(); - AnalyticsHelper.start(this); - if (BuildVars.LOGS_ENABLED) { FileLog.d("app start time = " + (startTime = SystemClock.elapsedRealtime())); try { @@ -321,6 +319,9 @@ public class ApplicationLoader extends Application { } catch (UnsatisfiedLinkError error) { throw new RuntimeException("can't load native libraries " + Build.CPU_ABI + " lookup folder " + NativeLoader.getAbiFolder()); } + + AnalyticsHelper.start(this); + new ForegroundDetector(this) { @Override public void onActivityStarted(Activity activity) {