mirror of
https://github.com/screentinker/screentinker.git
synced 2026-06-21 13:42:38 -06:00
fix(android): log per-zone content switches (live debug)
After stopping the fullscreen controller in multi-zone, the only switch logs went away - each zone now logs every item it renders (initial + each rotation) so the live debug panel shows each zone advancing on its own interval.
This commit is contained in:
parent
c94757fc97
commit
c184b94602
|
|
@ -140,6 +140,11 @@ class ZoneManager(
|
||||||
val isMuted = a.optInt("muted", 0) == 1
|
val isMuted = a.optInt("muted", 0) == 1
|
||||||
val durationMs = a.optInt("duration_sec", 10).coerceAtLeast(3) * 1000L
|
val durationMs = a.optInt("duration_sec", 10).coerceAtLeast(3) * 1000L
|
||||||
|
|
||||||
|
// Per-zone content switch log (fires on initial render AND each rotation), so
|
||||||
|
// the live debug panel shows each zone advancing on its own interval.
|
||||||
|
val label = a.optString("filename", "").ifEmpty { widgetType?.let { "widget:$it" } ?: mimeType.ifEmpty { "item" } }
|
||||||
|
com.remotedisplay.player.util.DebugLog.i("Zone", "'${zone.name}' [${(index % assignments.size) + 1}/${assignments.size}] -> $label (${durationMs / 1000}s)")
|
||||||
|
|
||||||
when {
|
when {
|
||||||
// Widget - render in WebView
|
// Widget - render in WebView
|
||||||
widgetType != null -> {
|
widgetType != null -> {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue