Sets the instance of the Application class before anything else
This commit is contained in:
@@ -176,11 +176,10 @@ class Amethyst : Application() {
|
|||||||
override fun onCreate() {
|
override fun onCreate() {
|
||||||
super.onCreate()
|
super.onCreate()
|
||||||
Log.d("AmethystApp", "onCreate $this")
|
Log.d("AmethystApp", "onCreate $this")
|
||||||
|
instance = this
|
||||||
|
|
||||||
Thread.setDefaultUncaughtExceptionHandler(UnexpectedCrashSaver(crashReportCache, applicationIOScope))
|
Thread.setDefaultUncaughtExceptionHandler(UnexpectedCrashSaver(crashReportCache, applicationIOScope))
|
||||||
|
|
||||||
instance = this
|
|
||||||
|
|
||||||
if (isDebug) {
|
if (isDebug) {
|
||||||
Logging.setup()
|
Logging.setup()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user