28 lines
819 B
Kotlin
28 lines
819 B
Kotlin
package de.timklge.karooheadwind
|
|
|
|
import android.content.Context
|
|
import android.os.Bundle
|
|
import androidx.activity.ComponentActivity
|
|
import androidx.activity.compose.setContent
|
|
import androidx.datastore.core.DataStore
|
|
import androidx.datastore.preferences.core.Preferences
|
|
import androidx.datastore.preferences.preferencesDataStore
|
|
import de.timklge.karooheadwind.screens.MainScreen
|
|
import de.timklge.karooheadwind.theme.AppTheme
|
|
|
|
val Context.dataStore: DataStore<Preferences> by preferencesDataStore(name = "settings")
|
|
|
|
class MainActivity : ComponentActivity() {
|
|
override fun onCreate(savedInstanceState: Bundle?) {
|
|
super.onCreate(savedInstanceState)
|
|
|
|
setContent {
|
|
AppTheme {
|
|
MainScreen() {
|
|
finish()
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|