android:name=".MyApplication"
class MyApplication : Application() {
init{
instance = this
}
companion object {
lateinit var instance: MyApplication
fun ApplicationContext() : Context {
return instance.applicationContext
}
}
}
Top comments (0)