mirror of
https://github.com/binwiederhier/ntfy-android.git
synced 2024-06-14 00:24:34 +12:00
22 lines
545 B
Kotlin
22 lines
545 B
Kotlin
package io.heckel.ntfy.app
|
|
|
|
import android.app.Application
|
|
import com.google.android.material.color.DynamicColors
|
|
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
|
|
}
|
|
|
|
override fun onCreate() {
|
|
DynamicColors.applyToActivitiesIfAvailable(this)
|
|
super.onCreate()
|
|
}
|
|
}
|