2017-12-11 18:45:04 +01:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
|
|
|
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
xmlns:validate="http://schemas.android.com/apk/res-auto">
|
|
|
|
<PreferenceCategory
|
|
|
|
android:key="openapssmb"
|
|
|
|
android:title="@string/openapssmb">
|
2018-04-24 00:11:52 +02:00
|
|
|
|
2017-12-11 18:45:04 +01:00
|
|
|
<EditTextPreference
|
|
|
|
android:defaultValue="1"
|
2018-04-24 00:11:52 +02:00
|
|
|
android:dialogMessage="@string/openapsma_maxbasal_summary"
|
2018-03-20 22:09:22 +01:00
|
|
|
android:key="@string/key_openapsma_max_basal"
|
2017-12-11 18:45:04 +01:00
|
|
|
android:numeric="decimal"
|
|
|
|
android:title="@string/openapsma_maxbasal_title" />
|
2018-04-24 00:11:52 +02:00
|
|
|
|
2017-12-11 18:45:04 +01:00
|
|
|
<EditTextPreference
|
2018-04-08 20:17:15 +02:00
|
|
|
android:defaultValue="3"
|
2018-04-24 00:11:52 +02:00
|
|
|
android:dialogMessage="@string/openapssmb_maxiob_summary"
|
2018-04-08 20:17:15 +02:00
|
|
|
android:key="@string/key_openapssmb_max_iob"
|
2017-12-11 18:45:04 +01:00
|
|
|
android:numeric="decimal"
|
2018-04-08 20:17:15 +02:00
|
|
|
android:title="@string/openapssmb_maxiob_title" />
|
2018-04-24 00:11:52 +02:00
|
|
|
|
2017-12-11 18:45:04 +01:00
|
|
|
<SwitchPreference
|
|
|
|
android:defaultValue="false"
|
|
|
|
android:key="openapsama_useautosens"
|
|
|
|
android:title="@string/openapsama_useautosens" />
|
2018-04-24 00:11:52 +02:00
|
|
|
|
2017-12-11 18:45:04 +01:00
|
|
|
<SwitchPreference
|
|
|
|
android:defaultValue="false"
|
|
|
|
android:key="@string/key_use_smb"
|
|
|
|
android:summary="@string/enablesmb_summary"
|
|
|
|
android:title="@string/enablesmb" />
|
2018-04-24 00:11:52 +02:00
|
|
|
|
2018-01-27 14:47:04 +01:00
|
|
|
<SwitchPreference
|
|
|
|
android:defaultValue="false"
|
2018-04-24 00:11:52 +02:00
|
|
|
android:dependency="@string/key_use_smb"
|
2018-01-27 14:47:04 +01:00
|
|
|
android:key="@string/key_enableSMB_with_COB"
|
|
|
|
android:summary="@string/enablesmbwithcob_summary"
|
2018-04-24 00:11:52 +02:00
|
|
|
android:title="@string/enablesmbwithcob" />
|
|
|
|
|
2018-01-27 14:47:04 +01:00
|
|
|
<SwitchPreference
|
|
|
|
android:defaultValue="false"
|
2018-04-24 00:11:52 +02:00
|
|
|
android:dependency="@string/key_use_smb"
|
2018-01-27 14:47:04 +01:00
|
|
|
android:key="@string/key_enableSMB_with_temptarget"
|
|
|
|
android:summary="@string/enablesmbwithtemptarget_summary"
|
2018-04-24 00:11:52 +02:00
|
|
|
android:title="@string/enablesmbwithtemptarget" />
|
|
|
|
|
2018-01-27 14:47:04 +01:00
|
|
|
<SwitchPreference
|
|
|
|
android:defaultValue="false"
|
2018-04-24 00:11:52 +02:00
|
|
|
android:dependency="@string/key_use_smb"
|
2018-01-27 14:47:04 +01:00
|
|
|
android:key="@string/key_allowSMB_with_high_temptarget"
|
|
|
|
android:summary="@string/enablesmbwithhightemptarget_summary"
|
2018-04-24 00:11:52 +02:00
|
|
|
android:title="@string/enablesmbwithhightemptarget" />
|
|
|
|
|
2018-01-27 14:47:04 +01:00
|
|
|
<SwitchPreference
|
|
|
|
android:defaultValue="false"
|
2018-04-24 00:11:52 +02:00
|
|
|
android:dependency="@string/key_use_smb"
|
2018-01-27 14:47:04 +01:00
|
|
|
android:key="@string/key_enableSMB_always"
|
|
|
|
android:summary="@string/enablesmbalways_summary"
|
2018-04-24 00:11:52 +02:00
|
|
|
android:title="@string/enablesmbalways" />
|
|
|
|
|
2018-01-27 14:47:04 +01:00
|
|
|
<SwitchPreference
|
|
|
|
android:defaultValue="false"
|
2018-04-24 00:11:52 +02:00
|
|
|
android:dependency="@string/key_use_smb"
|
2018-01-27 14:47:04 +01:00
|
|
|
android:key="@string/key_enableSMB_after_carbs"
|
|
|
|
android:summary="@string/enablesmbaftercarbs_summary"
|
2018-04-24 00:11:52 +02:00
|
|
|
android:title="@string/enablesmbaftercarbs" />
|
|
|
|
|
2017-12-11 18:45:04 +01:00
|
|
|
<com.andreabaccega.widget.ValidatingEditTextPreference
|
|
|
|
android:defaultValue="30"
|
|
|
|
android:dialogMessage="@string/smbmaxminutes"
|
|
|
|
android:digits="0123456789"
|
|
|
|
android:inputType="number"
|
|
|
|
android:key="key_smbmaxminutes"
|
|
|
|
android:maxLines="20"
|
|
|
|
android:selectAllOnFocus="true"
|
|
|
|
android:singleLine="true"
|
|
|
|
android:title="@string/smbmaxminutes_summary"
|
|
|
|
validate:maxNumber="120"
|
|
|
|
validate:minNumber="15"
|
|
|
|
validate:testType="numericRange" />
|
2018-04-24 00:11:52 +02:00
|
|
|
|
2017-12-11 18:45:04 +01:00
|
|
|
<SwitchPreference
|
|
|
|
android:defaultValue="false"
|
|
|
|
android:key="@string/key_use_uam"
|
|
|
|
android:summary="@string/enableuam_summary"
|
|
|
|
android:title="@string/enableuam" />
|
|
|
|
|
2018-06-20 18:39:47 +02:00
|
|
|
<SwitchPreference
|
|
|
|
android:defaultValue="false"
|
|
|
|
android:key="@string/key_high_temptarget_raises_sensitivity"
|
|
|
|
android:summary="@string/high_temptarget_raises_sensitivity_summary"
|
|
|
|
android:title="@string/key_high_temptarget_raises_sensitivity" />
|
|
|
|
|
|
|
|
<SwitchPreference
|
|
|
|
android:defaultValue="false"
|
|
|
|
android:key="@string/key_low_temptarget_lowers_sensitivity"
|
|
|
|
android:summary="@string/low_temptarget_lowers_sensitivity_summary"
|
|
|
|
android:title="@string/key_low_temptarget_lowers_sensitivity" />
|
|
|
|
|
2018-04-24 00:11:52 +02:00
|
|
|
<PreferenceScreen android:title="@string/advancedsettings_title">
|
|
|
|
|
|
|
|
<Preference android:summary="@string/openapsama_link_to_preferncejson_doc_txt">
|
|
|
|
<intent
|
|
|
|
android:action="android.intent.action.VIEW"
|
|
|
|
android:data="@string/openapsama_link_to_preferncejson_doc" />
|
|
|
|
</Preference>
|
|
|
|
|
|
|
|
<SwitchPreference
|
|
|
|
android:defaultValue="false"
|
|
|
|
android:key="@string/key_always_use_shortavg"
|
|
|
|
android:summary="@string/always_use_shortavg_summary"
|
|
|
|
android:title="@string/always_use_shortavg" />
|
|
|
|
|
|
|
|
<com.andreabaccega.widget.ValidatingEditTextPreference
|
|
|
|
android:defaultValue="3"
|
|
|
|
android:dialogMessage="@string/openapsama_max_daily_safety_multiplier_summary"
|
|
|
|
android:digits="0123456789.,"
|
|
|
|
android:inputType="number"
|
|
|
|
android:key="@string/key_openapsama_max_daily_safety_multiplier"
|
|
|
|
android:maxLines="20"
|
|
|
|
android:selectAllOnFocus="true"
|
|
|
|
android:title="@string/openapsama_max_daily_safety_multiplier"
|
|
|
|
validate:maxNumber="10"
|
|
|
|
validate:minNumber="1"
|
|
|
|
validate:testType="numericRange" />
|
|
|
|
|
|
|
|
<com.andreabaccega.widget.ValidatingEditTextPreference
|
|
|
|
android:defaultValue="4"
|
|
|
|
android:dialogMessage="@string/openapsama_current_basal_safety_multiplier_summary"
|
|
|
|
android:digits="0123456789.,"
|
|
|
|
android:inputType="number"
|
|
|
|
android:key="@string/key_openapsama_current_basal_safety_multiplier"
|
|
|
|
android:maxLines="20"
|
|
|
|
android:selectAllOnFocus="true"
|
|
|
|
android:singleLine="true"
|
|
|
|
android:title="@string/openapsama_current_basal_safety_multiplier"
|
|
|
|
validate:floatmaxNumber="10"
|
|
|
|
validate:floatminNumber="1"
|
|
|
|
validate:testType="floatNumericRange" />
|
|
|
|
|
|
|
|
</PreferenceScreen>
|
|
|
|
|
|
|
|
</PreferenceCategory>
|
2017-12-11 18:45:04 +01:00
|
|
|
|
|
|
|
</PreferenceScreen>
|