2017-01-08 14:21:29 +01:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2017-06-16 14:37:43 +02:00
|
|
|
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
xmlns:validate="http://schemas.android.com/apk/res-auto">
|
2017-01-08 14:21:29 +01:00
|
|
|
<PreferenceCategory
|
|
|
|
android:key="openapsama"
|
|
|
|
android:title="@string/openapsama">
|
|
|
|
|
2017-11-01 20:43:59 +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-11-01 20:43:59 +01:00
|
|
|
android:numeric="decimal"
|
|
|
|
android:title="@string/openapsma_maxbasal_title" />
|
2018-04-24 00:11:52 +02:00
|
|
|
|
2017-11-01 20:43:59 +01:00
|
|
|
<EditTextPreference
|
|
|
|
android:defaultValue="1.5"
|
2018-04-24 00:11:52 +02:00
|
|
|
android:dialogMessage="@string/openapsma_maxiob_summary"
|
2018-03-20 22:09:22 +01:00
|
|
|
android:key="@string/key_openapsma_max_iob"
|
2017-11-01 20:43:59 +01:00
|
|
|
android:numeric="decimal"
|
|
|
|
android:title="@string/openapsma_maxiob_title" />
|
2018-04-24 00:11:52 +02:00
|
|
|
|
2017-01-08 14:21:29 +01:00
|
|
|
<SwitchPreference
|
|
|
|
android:defaultValue="false"
|
2018-03-22 22:18:40 +01:00
|
|
|
android:key="@string/key_openapsama_useautosens"
|
2017-01-08 14:21:29 +01:00
|
|
|
android:title="@string/openapsama_useautosens" />
|
2018-04-24 00:11:52 +02:00
|
|
|
|
2017-12-11 18:45:04 +01:00
|
|
|
<SwitchPreference
|
|
|
|
android:defaultValue="true"
|
2018-04-24 00:11:52 +02:00
|
|
|
android:key="@string/key_openapsama_autosens_adjusttargets"
|
2017-12-11 18:45:04 +01:00
|
|
|
android:summary="@string/openapsama_autosens_adjusttargets_summary"
|
|
|
|
android:title="@string/openapsama_autosens_adjusttargets" />
|
2017-01-08 14:21:29 +01:00
|
|
|
|
2018-08-29 18:17:11 +02:00
|
|
|
<com.andreabaccega.widget.ValidatingEditTextPreference
|
|
|
|
android:defaultValue="3.0"
|
|
|
|
android:dialogMessage="@string/openapsama_min_5m_carbimpact_summary"
|
|
|
|
android:inputType="numberDecimal"
|
|
|
|
android:key="@string/key_openapsama_min_5m_carbimpact"
|
|
|
|
android:maxLines="20"
|
|
|
|
android:selectAllOnFocus="true"
|
|
|
|
android:singleLine="true"
|
|
|
|
android:title="@string/openapsama_min_5m_carbimpact"
|
|
|
|
validate:floatmaxNumber="12.0"
|
|
|
|
validate:floatminNumber="0.1"
|
|
|
|
validate:testType="floatNumericRange" />
|
|
|
|
|
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" />
|
|
|
|
|
|
|
|
<com.andreabaccega.widget.ValidatingEditTextPreference
|
|
|
|
android:defaultValue="2"
|
|
|
|
android:dialogMessage="@string/openapsama_bolussnooze_dia_divisor_summary"
|
|
|
|
android:digits="0123456789.,"
|
|
|
|
android:inputType="numberDecimal"
|
|
|
|
android:key="@string/key_openapsama_bolussnooze_dia_divisor"
|
|
|
|
android:maxLines="20"
|
|
|
|
android:selectAllOnFocus="true"
|
|
|
|
android:singleLine="true"
|
|
|
|
android:title="@string/openapsama_bolussnooze_dia_divisor"
|
|
|
|
validate:maxNumber="10"
|
|
|
|
validate:minNumber="1"
|
|
|
|
validate:testType="floatNumericRange" />
|
|
|
|
|
|
|
|
</PreferenceScreen>
|
|
|
|
|
2017-01-08 14:21:29 +01:00
|
|
|
</PreferenceCategory>
|
|
|
|
|
|
|
|
</PreferenceScreen>
|