ntfy-android/app/src/main/java/io/heckel/ntfy/app/Application.kt

16 lines
371 B
Kotlin
Raw Normal View History

2021-10-30 14:13:58 +13:00
package io.heckel.ntfy.app
import android.app.Application
2022-01-19 08:28:48 +13:00
import io.heckel.ntfy.db.Repository
import io.heckel.ntfy.util.Log
2021-10-30 14:13:58 +13:00
class Application : Application() {
2021-11-23 09:45:43 +13:00
val repository by lazy {
2022-02-13 13:43:42 +13:00
val repository = Repository.getInstance(applicationContext)
if (repository.getRecordLogs()) {
Log.setRecord(true)
}
repository
2021-11-23 09:45:43 +13:00
}
2021-10-30 14:13:58 +13:00
}