From d0d5dca959f8f93bd5b1c7c1fccb82b6c77ba6a3 Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Thu, 26 Nov 2020 17:02:50 +0100 Subject: [PATCH] improve landscape mode --- .../info/nightscout/androidaps/skins/SkinInterface.kt | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/src/main/java/info/nightscout/androidaps/skins/SkinInterface.kt b/app/src/main/java/info/nightscout/androidaps/skins/SkinInterface.kt index e40fe7031d..d2c595b246 100644 --- a/app/src/main/java/info/nightscout/androidaps/skins/SkinInterface.kt +++ b/app/src/main/java/info/nightscout/androidaps/skins/SkinInterface.kt @@ -41,6 +41,14 @@ interface SkinInterface { val timeLayoutParams = view.overview_time_llayout.layoutParams as ConstraintLayout.LayoutParams timeLayoutParams.endToEnd = ConstraintLayout.LayoutParams.UNSET timeLayoutParams.endToStart = view.overview_iob_llayout.id + val cobLayoutParams = view.overview_cob_llayout.layoutParams as ConstraintLayout.LayoutParams + cobLayoutParams.topToTop = ConstraintLayout.LayoutParams.PARENT_ID + val basalLayoutParams = view.overview_basal_llayout.layoutParams as ConstraintLayout.LayoutParams + basalLayoutParams.topToTop = ConstraintLayout.LayoutParams.PARENT_ID + val extendedLayoutParams = view.overview_extended_llayout.layoutParams as ConstraintLayout.LayoutParams + extendedLayoutParams.topToTop = ConstraintLayout.LayoutParams.PARENT_ID + val asLayoutParams = view.overview_as_llayout.layoutParams as ConstraintLayout.LayoutParams + asLayoutParams.topToTop = ConstraintLayout.LayoutParams.PARENT_ID if (isTablet) { for (v in listOf(