From 620058426841963e1f439b852c9f749bf7b01561 Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Mon, 20 Feb 2017 09:46:55 +0100 Subject: [PATCH] hours to fetch fixed --- .../NSClientInternal/services/NSClientService.java | 4 +--- app/src/main/res/values/strings.xml | 3 --- app/src/main/res/xml/pref_nsclientinternal.xml | 12 ------------ 3 files changed, 1 insertion(+), 18 deletions(-) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/NSClientInternal/services/NSClientService.java b/app/src/main/java/info/nightscout/androidaps/plugins/NSClientInternal/services/NSClientService.java index de623268e9..272959b21c 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/NSClientInternal/services/NSClientService.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/NSClientInternal/services/NSClientService.java @@ -88,7 +88,7 @@ public class NSClientService extends Service { static public String nsURL = ""; private String nsAPISecret = ""; private String nsDevice = ""; - private Integer nsHours = 3; + private Integer nsHours = 24; private final Integer timeToWaitForResponseInMs = 30000; private boolean uploading = false; @@ -155,7 +155,6 @@ public class NSClientService extends Service { public void onStatusEvent(EventPreferenceChange ev) { if (ev.isChanged(R.string.key_nsclientinternal_url) || ev.isChanged(R.string.key_nsclientinternal_api_secret) || - ev.isChanged(R.string.key_nsclientinternal_hours) || ev.isChanged(R.string.key_nsclientinternal_paused) ) { destroy(); @@ -293,7 +292,6 @@ public class NSClientService extends Service { nsEnabled = MainApp.getSpecificPlugin(NSClientInternalPlugin.class).isEnabled(PluginBase.GENERAL); nsURL = SP.getString(R.string.key_nsclientinternal_url, ""); nsAPISecret = SP.getString(R.string.key_nsclientinternal_api_secret, ""); - nsHours = SP.getInt(R.string.key_nsclientinternal_hours, 3); nsDevice = SP.getString("careportal_enteredby", ""); } diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 3803aa1300..58e2375142 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -515,8 +515,6 @@ Internal NSClient Nightscout URL Enter Nightscout URL - Hours to fetch - Enter hours to fetch from NS (max 48) NS API secret NS API secret Enter NS API secret (min 12 chars) @@ -531,7 +529,6 @@ Paused nsclientinternal_url nsclientinternal_api_secret - nsclientinternal_hours danar_bt_name danar_password danar_useextended diff --git a/app/src/main/res/xml/pref_nsclientinternal.xml b/app/src/main/res/xml/pref_nsclientinternal.xml index 5f7efd868d..f6ea0cb48e 100644 --- a/app/src/main/res/xml/pref_nsclientinternal.xml +++ b/app/src/main/res/xml/pref_nsclientinternal.xml @@ -21,18 +21,6 @@ android:defaultValue="" android:inputType="textPassword"> - \ No newline at end of file