Search in sources :

Example 1 with CrashlyticsUncaughtExceptionHandler

use of com.google.firebase.crashlytics.internal.common.CrashlyticsUncaughtExceptionHandler in project GreenHouse by utsanjan.

the class CrashlyticsController method enableExceptionHandling.

/* JADX INFO: Access modifiers changed from: package-private */
public void enableExceptionHandling(Thread.UncaughtExceptionHandler defaultHandler, SettingsDataProvider settingsProvider) {
    openSession();
    CrashlyticsUncaughtExceptionHandler.CrashListener crashListener = new // from class: com.google.firebase.crashlytics.internal.common.CrashlyticsController.5
    CrashlyticsUncaughtExceptionHandler.CrashListener() {

        // com.google.firebase.crashlytics.internal.common.CrashlyticsUncaughtExceptionHandler.CrashListener
        @Override
        public void onUncaughtException(SettingsDataProvider settingsDataProvider, Thread thread, Throwable ex) {
            CrashlyticsController.this.handleUncaughtException(settingsDataProvider, thread, ex);
        }
    };
    CrashlyticsUncaughtExceptionHandler crashlyticsUncaughtExceptionHandler = new CrashlyticsUncaughtExceptionHandler(crashListener, settingsProvider, defaultHandler);
    this.crashHandler = crashlyticsUncaughtExceptionHandler;
    Thread.setDefaultUncaughtExceptionHandler(crashlyticsUncaughtExceptionHandler);
}
Also used : CrashlyticsUncaughtExceptionHandler(com.google.firebase.crashlytics.internal.common.CrashlyticsUncaughtExceptionHandler) SettingsDataProvider(com.google.firebase.crashlytics.internal.settings.SettingsDataProvider) Thread(java.lang.Thread)

Aggregations

CrashlyticsUncaughtExceptionHandler (com.google.firebase.crashlytics.internal.common.CrashlyticsUncaughtExceptionHandler)1 SettingsDataProvider (com.google.firebase.crashlytics.internal.settings.SettingsDataProvider)1 Thread (java.lang.Thread)1