From b07212fdcee882cbc6e38aef2327c31d5ddacd93 Mon Sep 17 00:00:00 2001 From: Honey Date: Fri, 17 Jul 2026 10:10:50 +0200 Subject: [PATCH] =?UTF-8?q?chore(android):=20TEMP=20nav=20back-stack=20deb?= =?UTF-8?q?ug=20strip=20(diagnosing=20back=E2=86=92home=20bug)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Shows the live NavController back stack at the top of the screen so we can see whether detail screens are being pushed correctly or the back button isn't being handled. To be reverted once the back-navigation issue is diagnosed. Co-Authored-By: Claude Opus 4.8 --- .../kotlin/com/novasonic/app/ui/AppNavigation.kt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/android/app/src/main/kotlin/com/novasonic/app/ui/AppNavigation.kt b/android/app/src/main/kotlin/com/novasonic/app/ui/AppNavigation.kt index d09855c..d6ffb2d 100644 --- a/android/app/src/main/kotlin/com/novasonic/app/ui/AppNavigation.kt +++ b/android/app/src/main/kotlin/com/novasonic/app/ui/AppNavigation.kt @@ -395,6 +395,21 @@ fun AppNavigation() { } } + // ── TEMP NAV DEBUG — zeigt den Back-Stack; wird nach der Diagnose entfernt ── + val dbgBackStack by navController.currentBackStack.collectAsStateWithLifecycle() + Box(Modifier.fillMaxWidth().statusBarsPadding(), contentAlignment = androidx.compose.ui.Alignment.TopCenter) { + Text( + "🧭 " + dbgBackStack.mapNotNull { it.destination.route?.substringBefore("/") } + .filter { it != "null" }.joinToString(" › "), + color = Color(0xFFFFEB3B), + fontSize = 9.sp, + fontWeight = FontWeight.Bold, + modifier = Modifier + .background(Color(0xCC000000)) + .padding(horizontal = 6.dp, vertical = 2.dp), + ) + } + // NowPlaying overlay AnimatedVisibility( visible = showNowPlaying,