chore(android): TEMP nav back-stack debug strip (diagnosing back→home bug)

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 <noreply@anthropic.com>
This commit is contained in:
HoneyandClaude Opus 4.8 committed 2026-07-17 10:10:50 +02:00
1 parent 419f80568c
commit b07212fdce
1 file changed
+15
@@ -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 // NowPlaying overlay
AnimatedVisibility( AnimatedVisibility(
visible = showNowPlaying, visible = showNowPlaying,