INNER CODE UNIT · Kotlin

setExceptionHandler

Gedsh/InviZible · tordnscrypt/src/main/java/pan/alexander/tordnscrypt/App.kt:113

    private fun setExceptionHandler() {
        val exceptionHandler = Thread.getDefaultUncaughtExceptionHandler()
        if (exceptionHandler is TopExceptionHandler) {
            return
        }
        Thread.setDefaultUncaughtExceptionHandler(
            TopExceptionHandler(
                getSharedPreferences(
                    SharedPreferencesModule.APP_PREFERENCES_NAME,
                    MODE_PRIVATE
                ),
                exceptionHandler
            )
        )
    }

    private fun initAppLifecycleListener() {
        ProcessLifecycleOwner.get().lifecycle.addObserver(AppLifecycleListener(this))

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…