174 lines
7.3 KiB
XML
174 lines
7.3 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<androidx.preference.PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
|
|
xmlns:app="http://schemas.android.com/apk/res-auto"
|
|
xmlns:validate="http://schemas.android.com/apk/res-auto">
|
|
|
|
<PreferenceCategory
|
|
android:title="@string/nsclientinternal_title"
|
|
app:initialExpandedChildrenCount="0">
|
|
|
|
<info.nightscout.androidaps.utils.textValidator.ValidatingEditTextPreference
|
|
android:defaultValue="https://{YOUR-SITE}.azurewebsites.net/"
|
|
android:dialogMessage="@string/nsclientinternal_url_dialogmessage"
|
|
android:inputType="textUri"
|
|
android:key="@string/key_nsclientinternal_url"
|
|
android:selectAllOnFocus="true"
|
|
android:title="@string/nsclientinternal_url_title"
|
|
validate:testType="httpsUrl" />
|
|
|
|
<info.nightscout.androidaps.utils.textValidator.ValidatingEditTextPreference
|
|
android:dialogMessage="@string/nsclientinternal_secret_dialogmessage"
|
|
android:dialogTitle="@string/nsclientinternal_secret_dialogtitle"
|
|
android:inputType="textPassword"
|
|
android:key="@string/key_nsclientinternal_api_secret"
|
|
android:title="@string/nsclientinternal_secret_title"
|
|
validate:minLength="12"
|
|
validate:testType="minLength"/>
|
|
|
|
<SwitchPreference
|
|
android:defaultValue="true"
|
|
android:key="@string/key_ns_logappstartedevent"
|
|
android:title="@string/ns_logappstartedevent"
|
|
android:summary="@string/ns_logappstartedevent"
|
|
/>
|
|
|
|
<SwitchPreference
|
|
android:defaultValue="false"
|
|
android:key="@string/key_ns_uploadlocalprofile"
|
|
android:title="@string/ns_ploadlocalprofile" />
|
|
|
|
<androidx.preference.PreferenceScreen
|
|
android:key="@string/ns_alarmoptions"
|
|
android:title="@string/ns_alarmoptions">
|
|
|
|
<SwitchPreference
|
|
android:defaultValue="false"
|
|
android:key="@string/key_nsalarm_urgent_high"
|
|
android:title="@string/nsalarm_urgenthigh" />
|
|
|
|
<SwitchPreference
|
|
android:defaultValue="false"
|
|
android:key="@string/key_nsalarm_high"
|
|
android:title="@string/nsalarm_high" />
|
|
|
|
<SwitchPreference
|
|
android:defaultValue="false"
|
|
android:key="@string/key_nsalarm_low"
|
|
android:title="@string/nsalarm_low" />
|
|
|
|
<SwitchPreference
|
|
android:defaultValue="false"
|
|
android:key="@string/key_nsalarm_urgent_low"
|
|
android:title="@string/nsalarm_urgentlow" />
|
|
|
|
<SwitchPreference
|
|
android:defaultValue="false"
|
|
android:key="@string/key_nsalarm_staledata"
|
|
android:title="@string/nsalarm_staledata" />
|
|
|
|
<info.nightscout.androidaps.utils.textValidator.ValidatingEditTextPreference
|
|
android:defaultValue="16"
|
|
android:digits="0123456789"
|
|
android:inputType="number"
|
|
android:key="@string/key_nsalarm_staledatavalue"
|
|
android:maxLines="20"
|
|
android:selectAllOnFocus="true"
|
|
android:singleLine="true"
|
|
android:title="@string/nsalarm_staledatavalue_label"
|
|
validate:maxNumber="120"
|
|
validate:minNumber="15"
|
|
validate:testType="numericRange" />
|
|
|
|
<SwitchPreference
|
|
android:defaultValue="false"
|
|
android:key="@string/key_nsalarm_urgent_staledata"
|
|
android:title="@string/nsalarm_urgentstaledata" />
|
|
|
|
<info.nightscout.androidaps.utils.textValidator.ValidatingEditTextPreference
|
|
android:defaultValue="31"
|
|
android:digits="0123456789"
|
|
android:inputType="number"
|
|
android:key="@string/key_nsalarm_urgent_staledatavalue"
|
|
android:maxLines="20"
|
|
android:selectAllOnFocus="true"
|
|
android:singleLine="true"
|
|
android:title="@string/nsalarm_urgent_staledatavalue_label"
|
|
validate:maxNumber="180"
|
|
validate:minNumber="30"
|
|
validate:testType="numericRange" />
|
|
|
|
</androidx.preference.PreferenceScreen>
|
|
|
|
<androidx.preference.PreferenceScreen
|
|
android:key="@string/connectionsettings_title"
|
|
android:title="@string/connectionsettings_title">
|
|
|
|
<SwitchPreference
|
|
android:defaultValue="false"
|
|
android:disableDependentsState="true"
|
|
android:key="@string/key_ns_wifionly"
|
|
android:title="@string/ns_wifionly" />
|
|
|
|
<EditTextPreference
|
|
android:dialogMessage="@string/ns_wifi_allowedssids"
|
|
android:inputType="text"
|
|
android:key="@string/key_ns_wifi_ssids"
|
|
android:title="@string/ns_wifi_ssids" />
|
|
|
|
<SwitchPreference
|
|
android:defaultValue="true"
|
|
android:dependency="@string/key_ns_wifionly"
|
|
android:key="@string/key_ns_allowroaming"
|
|
android:title="@string/ns_allowroaming" />
|
|
|
|
<SwitchPreference
|
|
android:defaultValue="false"
|
|
android:key="@string/key_ns_chargingonly"
|
|
android:title="@string/ns_chargingonly" />
|
|
|
|
</androidx.preference.PreferenceScreen>
|
|
|
|
<androidx.preference.PreferenceScreen
|
|
android:key="absorption_nsclient_advanced"
|
|
android:title="@string/advancedsettings_title">
|
|
|
|
<SwitchPreference
|
|
android:defaultValue="true"
|
|
android:key="@string/key_ns_autobackfill"
|
|
android:summary="@string/ns_autobackfill_summary"
|
|
android:title="@string/ns_autobackfill_title" />
|
|
|
|
<SwitchPreference
|
|
android:defaultValue="true"
|
|
android:key="@string/key_ns_create_announcements_from_errors"
|
|
android:summary="@string/ns_create_announcements_from_errors_summary"
|
|
android:title="@string/ns_create_announcements_from_errors_title" />
|
|
|
|
<SwitchPreference
|
|
android:defaultValue="false"
|
|
android:key="@string/key_nsclient_localbroadcasts"
|
|
android:summary="@string/ns_localbroadcasts"
|
|
android:title="@string/ns_localbroadcasts_title" />
|
|
|
|
<SwitchPreference
|
|
android:defaultValue="true"
|
|
android:key="@string/key_ns_upload_only"
|
|
android:summary="@string/ns_upload_only_summary"
|
|
android:title="@string/ns_upload_only" />
|
|
|
|
<SwitchPreference
|
|
android:defaultValue="false"
|
|
android:key="@string/key_ns_noupload"
|
|
android:summary="@string/ns_noupload_summary"
|
|
android:title="@string/ns_noupload" />
|
|
|
|
<SwitchPreference
|
|
android:defaultValue="false"
|
|
android:key="ns_sync_use_absolute"
|
|
android:title="@string/ns_sync_use_absolute_title" />
|
|
|
|
</androidx.preference.PreferenceScreen>
|
|
|
|
</PreferenceCategory>
|
|
|
|
</androidx.preference.PreferenceScreen> |