hours to fetch fixed
This commit is contained in:
parent
352902438c
commit
6200584268
|
@ -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", "");
|
||||
}
|
||||
|
||||
|
|
|
@ -515,8 +515,6 @@
|
|||
<string name="nsclientinternal_title">Internal NSClient</string>
|
||||
<string name="nsclientinternal_url_title">Nightscout URL</string>
|
||||
<string name="nsclientinternal_url_dialogmessage">Enter Nightscout URL</string>
|
||||
<string name="nsclientinternal_hours">Hours to fetch</string>
|
||||
<string name="nsclientinternal_hours_message">Enter hours to fetch from NS (max 48)</string>
|
||||
<string name="nsclientinternal_secret_title">NS API secret</string>
|
||||
<string name="nsclientinternal_secret_dialogtitle">NS API secret</string>
|
||||
<string name="nsclientinternal_secret_dialogmessage">Enter NS API secret (min 12 chars)</string>
|
||||
|
@ -531,7 +529,6 @@
|
|||
<string name="paused">Paused</string>
|
||||
<string name="key_nsclientinternal_url" translatable="false">nsclientinternal_url</string>
|
||||
<string name="key_nsclientinternal_api_secret" translatable="false">nsclientinternal_api_secret</string>
|
||||
<string name="key_nsclientinternal_hours" translatable="false">nsclientinternal_hours</string>
|
||||
<string name="key_danar_bt_name" translatable="false">danar_bt_name</string>
|
||||
<string name="key_danar_password" translatable="false">danar_password</string>
|
||||
<string name="key_danar_useextended" translatable="false">danar_useextended</string>
|
||||
|
|
|
@ -21,18 +21,6 @@
|
|||
android:defaultValue=""
|
||||
android:inputType="textPassword">
|
||||
</EditTextPreference>
|
||||
<com.andreabaccega.widget.ValidatingEditTextPreference
|
||||
validate:testType="numericRange"
|
||||
validate:minNumber="1"
|
||||
validate:maxNumber="48"
|
||||
android:digits="0123456789"
|
||||
android:defaultValue="24"
|
||||
android:selectAllOnFocus="true"
|
||||
android:inputType="number"
|
||||
android:maxLines="20"
|
||||
android:title="@string/nsclientinternal_hours"
|
||||
android:dialogMessage="@string/nsclientinternal_hours_message"
|
||||
android:key="@string/key_nsclientinternal_hours" />
|
||||
</PreferenceCategory>
|
||||
|
||||
</PreferenceScreen>
|
Loading…
Reference in a new issue