pull/2/head
GKF 6 years ago
parent 72d6e76ac9
commit e2de6973bc
  1. 9
      app/src/main/java/io/legado/app/App.kt
  2. 7
      app/src/main/java/io/legado/app/constant/AppConst.kt

@ -1,12 +1,19 @@
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
}
override fun onCreate() {
super.onCreate()
instance = this
configPreferences = getSharedPreferences("CONFIG", 0)
}
}

@ -0,0 +1,7 @@
package io.legado.app.constant
object AppConst {
const val channelIdDownload = "channel_download"
const val channelIdReadAloud = "channel_read_aloud"
const val channelIdWeb = "channel_web"
}
Loading…
Cancel
Save