Merge pull request #5 from gedoor/atbest

去掉pref
pull/8/head
atbest 6 years ago committed by GitHub
commit 881d8e68d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      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
}
}
Loading…
Cancel
Save