|
|
@ -4,12 +4,14 @@ import android.app.Application |
|
|
|
|
|
|
|
|
|
|
|
class App : Application() { |
|
|
|
class App : Application() { |
|
|
|
|
|
|
|
|
|
|
|
companion object{ |
|
|
|
companion object { |
|
|
|
|
|
|
|
@JvmStatic |
|
|
|
lateinit var INSTANCE: App |
|
|
|
lateinit var INSTANCE: App |
|
|
|
|
|
|
|
private set |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
override fun onCreate() { |
|
|
|
override fun onCreate() { |
|
|
|
super.onCreate() |
|
|
|
super.onCreate() |
|
|
|
INSTANCE = this |
|
|
|
INSTANCE = this |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|