summaryrefslogtreecommitdiff
path: root/android-app/app/src/main/kotlin/org
diff options
context:
space:
mode:
authorClaude <noreply@anthropic.com>2026-04-11 17:45:42 +0000
committerClaude <noreply@anthropic.com>2026-04-11 17:45:42 +0000
commitb7810d0ff62e18ec991b624482d94f1363778872 (patch)
tree2d912c1e2e12b13378338e9ecfd2a78f4f8d2a60 /android-app/app/src/main/kotlin/org
parent7dc7bae441f48a17ee694a80fb3ecbdd2f933b7f (diff)
Fix: use INVISIBLE instead of GONE for condition spinners
GONE collapses the spinner's space, causing the value/unit TextViews to reflow and bounce on every refresh. INVISIBLE keeps the 10dp width reserved so the surrounding text never moves. https://claude.ai/code/session_01HXPjBsogsJVRwCiekDGkJX
Diffstat (limited to 'android-app/app/src/main/kotlin/org')
-rw-r--r--android-app/app/src/main/kotlin/org/terst/nav/MainActivity.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/android-app/app/src/main/kotlin/org/terst/nav/MainActivity.kt b/android-app/app/src/main/kotlin/org/terst/nav/MainActivity.kt
index f531a68..bdd8bd9 100644
--- a/android-app/app/src/main/kotlin/org/terst/nav/MainActivity.kt
+++ b/android-app/app/src/main/kotlin/org/terst/nav/MainActivity.kt
@@ -520,7 +520,7 @@ class MainActivity : AppCompatActivity(), SafetyFragment.SafetyListener {
).mapNotNull { findViewById<android.view.View>(it) }
lifecycleScope.launch {
viewModel.conditionsLoading.collect { loading ->
- val vis = if (loading) android.view.View.VISIBLE else android.view.View.GONE
+ val vis = if (loading) android.view.View.VISIBLE else android.view.View.INVISIBLE
conditionSpinners.forEach { it.visibility = vis }
}
}