diff options
| author | Claude <noreply@anthropic.com> | 2026-04-11 17:45:42 +0000 |
|---|---|---|
| committer | Claude <noreply@anthropic.com> | 2026-04-11 17:45:42 +0000 |
| commit | b7810d0ff62e18ec991b624482d94f1363778872 (patch) | |
| tree | 2d912c1e2e12b13378338e9ecfd2a78f4f8d2a60 /android-app/app/src/main/kotlin | |
| parent | 7dc7bae441f48a17ee694a80fb3ecbdd2f933b7f (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')
| -rw-r--r-- | android-app/app/src/main/kotlin/org/terst/nav/MainActivity.kt | 2 |
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 } } } |
