mirror of
https://github.com/binwiederhier/ntfy-android.git
synced 2024-05-18 19:42:34 +12:00
16 lines
371 B
Kotlin
16 lines
371 B
Kotlin
package io.heckel.ntfy.app
|
|
|
|
import android.app.Application
|
|
import io.heckel.ntfy.db.Repository
|
|
import io.heckel.ntfy.util.Log
|
|
|
|
class Application : Application() {
|
|
val repository by lazy {
|
|
val repository = Repository.getInstance(applicationContext)
|
|
if (repository.getRecordLogs()) {
|
|
Log.setRecord(true)
|
|
}
|
|
repository
|
|
}
|
|
}
|