From db99c59edb423eab5675d3fbb07f9a536303a5f8 Mon Sep 17 00:00:00 2001 From: atbest Date: Wed, 22 May 2019 03:51:29 -0400 Subject: [PATCH] =?UTF-8?q?=E8=A7=84=E8=8C=83=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/io/legado/app/App.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 +}