trkpt/app/src/main/java/org/y20k/trackbook/Trackbook.kt

51 lines
1.1 KiB
Kotlin
Raw Normal View History

2020-01-02 17:00:37 +00:00
/*
* Trackbook.kt
* Implements the Trackbook class
* Trackbook is the base Application class that sets up day and night theme
*
* This file is part of
* TRACKBOOK - Movement Recorder for Android
*
* Copyright (c) 2016-20 - Y20K.org
* Licensed under the MIT-License
* http://opensource.org/licenses/MIT
*
* Trackbook uses osmdroid - OpenStreetMap-Tools for Android
* https://github.com/osmdroid/osmdroid
*/
package org.y20k.trackbook
import android.app.Application
import org.y20k.trackbook.helpers.LogHelper
import org.y20k.trackbook.helpers.NightModeHelper
/*
* Trackbook.class
*/
class Trackbook: Application() {
/* Define log tag */
private val TAG: String = LogHelper.makeLogTag(Trackbook::class.java)
/* Implements onCreate */
override fun onCreate() {
super.onCreate()
LogHelper.v(TAG, "Trackbook application started.")
// set Day / Night theme state
NightModeHelper.restoreSavedState(this)
}
/* Implements onTerminate */
override fun onTerminate() {
super.onTerminate()
LogHelper.v(TAG, "Trackbook application terminated.")
}
}