From d9ad3e35d9588888f2dd8a2b26ede88fb9d397ad Mon Sep 17 00:00:00 2001 From: Andries Smit Date: Thu, 10 Feb 2022 20:21:22 +0100 Subject: [PATCH] chore: rewrite to use not function --- .../androidaps/plugins/general/overview/OverviewFragment.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/general/overview/OverviewFragment.kt b/app/src/main/java/info/nightscout/androidaps/plugins/general/overview/OverviewFragment.kt index 6655c51c32..d82e315359 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/general/overview/OverviewFragment.kt +++ b/app/src/main/java/info/nightscout/androidaps/plugins/general/overview/OverviewFragment.kt @@ -829,7 +829,7 @@ class OverviewFragment : DaggerFragment(), View.OnClickListener, OnLongClickList cannulaOrPatch.contentDescription = rh.gs(if (isPatchPump) R.string.statuslights_patch_pump_age else R.string.statuslights_cannula_age) cannulaOrPatch.scaleX = if (isPatchPump) 1.4f else 2f cannulaOrPatch.scaleY = cannulaOrPatch.scaleX - insulinAge.visibility = (!isPatchPump).toVisibility() + insulinAge.visibility = isPatchPump.not().toVisibility() statusLights.visibility = (sp.getBoolean(R.string.key_show_statuslights, true) || config.NSCLIENT).toVisibility() } statusLightHandler.updateStatusLights(