mirror of
https://github.com/Michatec/Radio.git
synced 2026-01-30 23:17:21 +00:00
- Update the libary gson. - Deleted some unuseful Code. - added some locals to locales config.
44 lines
918 B
Kotlin
44 lines
918 B
Kotlin
/*
|
|
* Radio.kt
|
|
* Implements the Radio class
|
|
* Radio is the base Application class that sets up day and night theme
|
|
*
|
|
* This file is part of
|
|
* TRANSISTOR - Radio App for Android
|
|
*
|
|
* Copyright (c) 2015-22 - Y20K.org
|
|
* Licensed under the MIT-License
|
|
* http://opensource.org/licenses/MIT
|
|
*/
|
|
|
|
|
|
package com.michatec.radio
|
|
|
|
import android.app.Application
|
|
import com.michatec.radio.helpers.AppThemeHelper
|
|
import com.michatec.radio.helpers.PreferencesHelper
|
|
import com.michatec.radio.helpers.PreferencesHelper.initPreferences
|
|
|
|
|
|
/**
|
|
* Radio.class
|
|
*/
|
|
class Radio : Application() {
|
|
|
|
|
|
/* Implements onCreate */
|
|
override fun onCreate() {
|
|
super.onCreate()
|
|
initPreferences()
|
|
// set Dark / Light theme state
|
|
AppThemeHelper.setTheme(PreferencesHelper.loadThemeSelection())
|
|
}
|
|
|
|
|
|
/* Implements onTerminate */
|
|
override fun onTerminate() {
|
|
super.onTerminate()
|
|
}
|
|
|
|
}
|