31 lines
1.1 KiB
Kotlin
31 lines
1.1 KiB
Kotlin
package com.mag160c.thermal
|
|
|
|
import android.os.Bundle
|
|
import androidx.activity.ComponentActivity
|
|
import androidx.activity.compose.setContent
|
|
import androidx.activity.enableEdgeToEdge
|
|
import com.mag160c.thermal.ui.AppRoot
|
|
import com.mag160c.thermal.ui.theme.Mag160cTheme
|
|
|
|
class MainActivity : ComponentActivity() {
|
|
override fun onCreate(savedInstanceState: Bundle?) {
|
|
super.onCreate(savedInstanceState)
|
|
// field-debug crash hook + log file (opened at startup so even
|
|
// early crashes are captured; logging never throws)
|
|
com.mag160c.thermal.media.DebugLog.init(applicationContext)
|
|
com.mag160c.thermal.media.DebugLog.startFile(applicationContext)
|
|
enableEdgeToEdge()
|
|
// immersive: hide the status bar (swipe to reveal)
|
|
window.insetsController?.let { c ->
|
|
c.hide(android.view.WindowInsets.Type.statusBars())
|
|
c.systemBarsBehavior =
|
|
android.view.WindowInsetsController.BEHAVIOR_SHOW_TRANSIENT_BARS_BY_SWIPE
|
|
}
|
|
setContent {
|
|
Mag160cTheme {
|
|
AppRoot()
|
|
}
|
|
}
|
|
}
|
|
}
|