Newer
Older
OverlayMultiCounter / app / src / main / kotlin / jackall / overlaymulticounter / App.kt
MatsumotoKeiju on 8 Nov 2017 407 bytes [add] Application class
package jackall.overlaymulticounter

import android.annotation.SuppressLint
import android.app.Application

/**
 * Created by matsumoto_k on 2017/11/08.
 */
class App : Application() {
    companion object {
        @SuppressLint("StaticFieldLeak")
        lateinit var instance: App

        fun get() = instance
    }

    override fun onCreate() {
        super.onCreate()
        instance = this
    }
}