From 3fed995d5159c9e8bb8d79a8353310beed25973a Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Mon, 26 Aug 2019 22:40:54 +0200 Subject: [PATCH] fix disappearing save button --- .../androidaps/utils/TimeListEdit.java | 4 +- .../main/res/layout/localprofile_fragment.xml | 331 +++++++++--------- 2 files changed, 166 insertions(+), 169 deletions(-) diff --git a/app/src/main/java/info/nightscout/androidaps/utils/TimeListEdit.java b/app/src/main/java/info/nightscout/androidaps/utils/TimeListEdit.java index c4fffc9452..be8b89dff4 100644 --- a/app/src/main/java/info/nightscout/androidaps/utils/TimeListEdit.java +++ b/app/src/main/java/info/nightscout/androidaps/utils/TimeListEdit.java @@ -236,8 +236,8 @@ public class TimeListEdit { if (i == 0) next = ONEHOURINSECONDS; fillSpinner(timeSpinner, secondFromMidnight(i), previous, next); - editText1.setParams(value1(i), min, max, step, formatter, false, view.findViewById(R.id.localprofile_save)); - editText2.setParams(value2(i), min, max, step, formatter, false, view.findViewById(R.id.localprofile_save)); + editText1.setParams(value1(i), min, max, step, formatter, false,null); + editText2.setParams(value2(i), min, max, step, formatter, false, null); if (data2 == null) { editText2.setVisibility(View.GONE); diff --git a/app/src/main/res/layout/localprofile_fragment.xml b/app/src/main/res/layout/localprofile_fragment.xml index be5f994302..1edeeb0b31 100644 --- a/app/src/main/res/layout/localprofile_fragment.xml +++ b/app/src/main/res/layout/localprofile_fragment.xml @@ -1,197 +1,194 @@ - - + android:layout_height="wrap_content" + android:orientation="vertical"> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - +