Wear CWF: Fix second visibility

This commit is contained in:
Philoul 2023-08-19 22:38:21 +02:00
parent 60375978ad
commit 5e407634b6

View file

@ -133,8 +133,8 @@ class CustomWatchface : BaseWatchFace() {
} }
override fun updateSecondVisibility() { override fun updateSecondVisibility() {
binding.second.visibility = showSecond.toVisibility() binding.second.visibility = (binding.second.visibility == View.VISIBLE && showSecond).toVisibility()
binding.secondHand.visibility = showSecond.toVisibility() binding.secondHand.visibility = (binding.secondHand.visibility == View.VISIBLE && showSecond).toVisibility()
} }
@SuppressLint("UseCompatLoadingForDrawables") @SuppressLint("UseCompatLoadingForDrawables")