parent
72d6e76ac9
commit
e2de6973bc
@ -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…
Reference in new issue