From a9bcb0ee7692ba63da3018987edfe337dd4bcbf3 Mon Sep 17 00:00:00 2001 From: swissalpine Date: Sun, 29 Nov 2020 15:31:45 +0100 Subject: [PATCH] Don't ignore the decision for low skin display The decision made in the settings, that low skin should be displayed, should be respected - and not overwritten by display properties. --- .../java/info/nightscout/androidaps/skins/SkinLowRes.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/info/nightscout/androidaps/skins/SkinLowRes.kt b/app/src/main/java/info/nightscout/androidaps/skins/SkinLowRes.kt index 609c324cee..0eb1b2c1ea 100644 --- a/app/src/main/java/info/nightscout/androidaps/skins/SkinLowRes.kt +++ b/app/src/main/java/info/nightscout/androidaps/skins/SkinLowRes.kt @@ -17,15 +17,15 @@ class SkinLowRes @Inject constructor(private val config: Config) : SkinInterface override fun overviewLayout(isLandscape: Boolean, isTablet: Boolean, isSmallHeight: Boolean): Int = when { config.NSCLIENT -> R.layout.overview_fragment_nsclient - isSmallHeight || isLandscape -> R.layout.overview_fragment_landscape + isLandscape -> R.layout.overview_fragment_landscape else -> R.layout.overview_fragment } override fun actionsLayout(isLandscape: Boolean, isSmallWidth: Boolean): Int = when { - isLandscape || !isSmallWidth -> R.layout.actions_fragment + isLandscape -> R.layout.actions_fragment else -> R.layout.actions_fragment_lowres } override fun preProcessLandscapeOverviewLayout(dm: DisplayMetrics, view: View, isTablet: Boolean) {} -} \ No newline at end of file +}