From 5e407634b6a0eb2ca1552b6429be33fd882d4a0b Mon Sep 17 00:00:00 2001 From: Philoul Date: Sat, 19 Aug 2023 22:38:21 +0200 Subject: [PATCH] Wear CWF: Fix second visibility --- .../info/nightscout/androidaps/watchfaces/CustomWatchface.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wear/src/main/java/info/nightscout/androidaps/watchfaces/CustomWatchface.kt b/wear/src/main/java/info/nightscout/androidaps/watchfaces/CustomWatchface.kt index 4f0cfb0652..4f570d11b7 100644 --- a/wear/src/main/java/info/nightscout/androidaps/watchfaces/CustomWatchface.kt +++ b/wear/src/main/java/info/nightscout/androidaps/watchfaces/CustomWatchface.kt @@ -133,8 +133,8 @@ class CustomWatchface : BaseWatchFace() { } override fun updateSecondVisibility() { - binding.second.visibility = showSecond.toVisibility() - binding.secondHand.visibility = showSecond.toVisibility() + binding.second.visibility = (binding.second.visibility == View.VISIBLE && showSecond).toVisibility() + binding.secondHand.visibility = (binding.secondHand.visibility == View.VISIBLE && showSecond).toVisibility() } @SuppressLint("UseCompatLoadingForDrawables")