diff --git a/app/src/main/java/io/legado/app/App.kt b/app/src/main/java/io/legado/app/App.kt index c33a667f3..d94919f22 100644 --- a/app/src/main/java/io/legado/app/App.kt +++ b/app/src/main/java/io/legado/app/App.kt @@ -4,12 +4,14 @@ import android.app.Application class App : Application() { - companion object{ + companion object { + @JvmStatic lateinit var INSTANCE: App + private set } override fun onCreate() { super.onCreate() INSTANCE = this } -} \ No newline at end of file +}