From b7810d0ff62e18ec991b624482d94f1363778872 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 11 Apr 2026 17:45:42 +0000 Subject: 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 --- android-app/app/src/main/kotlin/org/terst/nav/MainActivity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'android-app/app/src/main/kotlin') 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(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 } } } -- cgit v1.2.3