From 36e6cb84978cec1b5fa04b354331ea91cf0daa5c Mon Sep 17 00:00:00 2001 From: AdrianLxM Date: Thu, 3 Aug 2017 08:22:59 +0200 Subject: [PATCH] remove canceltemp button from all layouts and click handling from overview fragment --- .../plugins/Overview/OverviewFragment.java | 12 ------------ .../layout/overview_fragment_nsclient_tablet.xml | 14 -------------- .../res/layout/overview_fragment_smallheight.xml | 14 -------------- 3 files changed, 40 deletions(-) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/Overview/OverviewFragment.java b/app/src/main/java/info/nightscout/androidaps/plugins/Overview/OverviewFragment.java index 193b7c564c..7e33d1ff8c 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/Overview/OverviewFragment.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/Overview/OverviewFragment.java @@ -583,18 +583,6 @@ public class OverviewFragment extends Fragment implements View.OnClickListener, NewTreatmentDialog treatmentDialogFragment = new NewTreatmentDialog(); treatmentDialogFragment.show(manager, "TreatmentDialog"); break; - case R.id.overview_canceltempbutton: - final PumpInterface pump = MainApp.getConfigBuilder(); - if (MainApp.getConfigBuilder().isTempBasalInProgress()) { - sHandler.post(new Runnable() { - @Override - public void run() { - pump.cancelTempBasal(true); - Answers.getInstance().logCustom(new CustomEvent("CancelTemp")); - } - }); - } - break; case R.id.overview_pumpstatus: if (MainApp.getConfigBuilder().isSuspended() || !MainApp.getConfigBuilder().isInitialized()) sHandler.post(new Runnable() { diff --git a/app/src/main/res/layout/overview_fragment_nsclient_tablet.xml b/app/src/main/res/layout/overview_fragment_nsclient_tablet.xml index 014f5f5993..10148057bb 100644 --- a/app/src/main/res/layout/overview_fragment_nsclient_tablet.xml +++ b/app/src/main/res/layout/overview_fragment_nsclient_tablet.xml @@ -756,20 +756,6 @@ android:textSize="10sp" android:visibility="gone" /> -