parent
b9bbd7990c
commit
55813d1a5f
@ -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…
Reference in new issue