Sets the instance of the Application class before anything else

This commit is contained in:
Vitor Pamplona
2025-09-06 10:29:52 -04:00
parent 18b2fdb7e4
commit caf325f240
@@ -176,11 +176,10 @@ class Amethyst : Application() {
override fun onCreate() {
super.onCreate()
Log.d("AmethystApp", "onCreate $this")
instance = this
Thread.setDefaultUncaughtExceptionHandler(UnexpectedCrashSaver(crashReportCache, applicationIOScope))
instance = this
if (isDebug) {
Logging.setup()
}