From 55813d1a5f26c3361e3dffc7516d7296486f53d0 Mon Sep 17 00:00:00 2001 From: atbest Date: Wed, 22 May 2019 03:39:30 -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 | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/app/src/main/java/io/legado/app/App.kt b/app/src/main/java/io/legado/app/App.kt index 90f01213b..c33a667f3 100644 --- a/app/src/main/java/io/legado/app/App.kt +++ b/app/src/main/java/io/legado/app/App.kt @@ -1,19 +1,15 @@ package io.legado.app import android.app.Application -import android.content.SharedPreferences class App : Application() { companion object{ - lateinit var instance:App - lateinit var configPreferences:SharedPreferences + lateinit var INSTANCE: App } override fun onCreate() { super.onCreate() - instance = this - configPreferences = getSharedPreferences("CONFIG", 0) - + INSTANCE = this } } \ No newline at end of file