From f6650e33e43ddd7ef21c4cc6189347869fec0b39 Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Sat, 10 Jun 2017 22:04:59 +0200 Subject: [PATCH] remove test buttons --- .../plugins/Actions/ActionsFragment.java | 21 --- app/src/main/res/layout/actions_fragment.xml | 175 ++++++++---------- 2 files changed, 76 insertions(+), 120 deletions(-) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/Actions/ActionsFragment.java b/app/src/main/java/info/nightscout/androidaps/plugins/Actions/ActionsFragment.java index f18ca15be8..77e5b40250 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/Actions/ActionsFragment.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/Actions/ActionsFragment.java @@ -84,9 +84,6 @@ public class ActionsFragment extends Fragment implements View.OnClickListener { tempBasal.setOnClickListener(this); fill.setOnClickListener(this); - view.findViewById(R.id.actions_50_30).setOnClickListener(this); - view.findViewById(R.id.actions_400_15).setOnClickListener(this); - updateGUIIfVisible(); return view; } @@ -207,24 +204,6 @@ public class ActionsFragment extends Fragment implements View.OnClickListener { FillDialog fillDialog = new FillDialog(); fillDialog.show(manager, "FillDialog"); break; - case R.id.actions_50_30: - sHandler.post(new Runnable() { - @Override - public void run() { - DanaRv2Plugin danaRv2Plugin = (DanaRv2Plugin) MainApp.getSpecificPlugin(DanaRv2Plugin.class); - danaRv2Plugin.setHighTempBasalPercent(50); - } - }); - break; - case R.id.actions_400_15: - sHandler.post(new Runnable() { - @Override - public void run() { - DanaRv2Plugin danaRv2Plugin = (DanaRv2Plugin) MainApp.getSpecificPlugin(DanaRv2Plugin.class); - danaRv2Plugin.setHighTempBasalPercent(400); - } - }); - break; } } } diff --git a/app/src/main/res/layout/actions_fragment.xml b/app/src/main/res/layout/actions_fragment.xml index 71c7d9dd2f..5a0faa4099 100644 --- a/app/src/main/res/layout/actions_fragment.xml +++ b/app/src/main/res/layout/actions_fragment.xml @@ -8,114 +8,91 @@ android:layout_width="match_parent" android:layout_height="wrap_content"> - - -