血洒疆场 死又何妨

沉迷吃鸡,无法自拔

单例Application

class App : Application() {
    companion object {
        private var instance: Application? = null
        fun instance() = instance!!
    }
    override fun onCreate() {
        super.onCreate()
        instance = this
    }
}

Over 依旧是无敌的少主

少主保佑我明天吃鸡

推荐阅读更多精彩内容