android: fix black screen (missing FFC(0)x2+START pre-stream sequence) + field debug log to DCIM/MAG160C

This commit is contained in:
ZXCLI
2026-09-10 00:01:25 +08:00
parent fe8595f747
commit ee317c7b25
8 changed files with 425 additions and 57 deletions
@@ -10,6 +10,8 @@ import com.mag160c.thermal.ui.theme.Mag160cTheme
class MainActivity : ComponentActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
// field-debug crash hook + logcat/file logger (file opens on connect)
com.mag160c.thermal.media.DebugLog.init(applicationContext)
enableEdgeToEdge()
// immersive: hide the status bar (swipe to reveal)
window.insetsController?.let { c ->