Skip to content

Commit 2a20748

Browse files
fix: init ANR detector (#346)
Co-authored-by: chris <[email protected]>
1 parent dda2f29 commit 2a20748

File tree

1 file changed

+2
-0
lines changed
  • rollbar-android/src/main/java/com/rollbar/android

1 file changed

+2
-0
lines changed

rollbar-android/src/main/java/com/rollbar/android/Rollbar.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,6 +271,8 @@ public static Rollbar init(Context context, ConfigProvider provider) {
271271
Log.w(TAG, "Rollbar.init() called when it was already initialized.");
272272
} else {
273273
notifier = new Rollbar(context, null, null, true, false, provider);
274+
AndroidConfiguration androidConfiguration = makeDefaultAndroidConfiguration();
275+
initAnrDetector(context, androidConfiguration);
274276
}
275277
return notifier;
276278
}

0 commit comments

Comments
 (0)