commit
0700ab4945
@ -1,19 +1,15 @@ |
|||||||
package io.legado.app |
package io.legado.app |
||||||
|
|
||||||
import android.app.Application |
import android.app.Application |
||||||
import android.content.SharedPreferences |
|
||||||
|
|
||||||
class App : Application() { |
class App : Application() { |
||||||
|
|
||||||
companion object{ |
companion object{ |
||||||
lateinit var instance:App |
lateinit var INSTANCE: App |
||||||
lateinit var configPreferences:SharedPreferences |
|
||||||
} |
} |
||||||
|
|
||||||
override fun onCreate() { |
override fun onCreate() { |
||||||
super.onCreate() |
super.onCreate() |
||||||
instance = this |
INSTANCE = this |
||||||
configPreferences = getSharedPreferences("CONFIG", 0) |
|
||||||
|
|
||||||
} |
} |
||||||
} |
} |
Loading…
Reference in new issue