2017-01-24 10:28:42 +01:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2017-01-26 12:07:25 +01:00
|
|
|
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
|
|
|
|
xmlns:validate="http://schemas.android.com/apk/res-auto">
|
2017-01-24 10:28:42 +01:00
|
|
|
<PreferenceCategory
|
|
|
|
android:key="advanced"
|
|
|
|
android:title="@string/advancedsettings_title">
|
|
|
|
<PreferenceScreen
|
|
|
|
android:title="@string/advancedsettings_title">
|
|
|
|
<PreferenceCategory
|
|
|
|
android:title="@string/nightscout">
|
|
|
|
<SwitchPreference
|
|
|
|
android:defaultValue="false"
|
|
|
|
android:key="ns_upload_only"
|
|
|
|
android:title="@string/ns_upload_only"
|
|
|
|
android:summary="@string/ns_upload_only_summary"/>
|
|
|
|
<SwitchPreference
|
|
|
|
android:defaultValue="false"
|
|
|
|
android:key="ns_sync_use_absolute"
|
|
|
|
android:title="@string/ns_sync_use_absolute_title" />
|
|
|
|
</PreferenceCategory>
|
|
|
|
<PreferenceCategory
|
|
|
|
android:title="@string/openapsma">
|
|
|
|
<SwitchPreference
|
|
|
|
android:defaultValue="false"
|
|
|
|
android:key="always_use_shortavg"
|
|
|
|
android:title="@string/always_use_shortavg"
|
|
|
|
android:summary="@string/always_use_shortavg_summary"/>
|
|
|
|
</PreferenceCategory>
|
2017-01-25 15:18:01 +01:00
|
|
|
<PreferenceCategory
|
|
|
|
android:title="OpenAPS preferences.json">
|
2017-01-25 20:41:33 +01:00
|
|
|
<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>
|
2017-01-26 12:07:25 +01:00
|
|
|
<com.andreabaccega.widget.ValidatingEditTextPreference
|
|
|
|
validate:testType="numericRange"
|
|
|
|
validate:minNumber="1"
|
|
|
|
validate:maxNumber="10"
|
|
|
|
android:digits="0123456789.,"
|
2017-01-25 15:18:01 +01:00
|
|
|
android:defaultValue="3"
|
|
|
|
android:selectAllOnFocus="true"
|
|
|
|
android:inputType="number"
|
2017-01-25 20:20:39 +01:00
|
|
|
android:maxLines="20"
|
2017-01-25 15:18:01 +01:00
|
|
|
android:title="@string/openapsama_max_daily_safety_multiplier"
|
2017-01-25 20:20:39 +01:00
|
|
|
android:dialogMessage="@string/openapsama_max_daily_safety_multiplier_summary"
|
2017-01-25 15:18:01 +01:00
|
|
|
android:key="openapsama_max_daily_safety_multiplier" />
|
2017-01-26 12:07:25 +01:00
|
|
|
|
|
|
|
<com.andreabaccega.widget.ValidatingEditTextPreference
|
|
|
|
validate:testType="numericRange"
|
|
|
|
validate:minNumber="1"
|
|
|
|
validate:maxNumber="10"
|
|
|
|
android:digits="0123456789.,"
|
2017-01-25 15:18:01 +01:00
|
|
|
android:defaultValue="4"
|
|
|
|
android:selectAllOnFocus="true"
|
|
|
|
android:singleLine="true"
|
|
|
|
android:inputType="number"
|
2017-01-25 20:20:39 +01:00
|
|
|
android:maxLines="20"
|
2017-01-25 15:18:01 +01:00
|
|
|
android:title="@string/openapsama_current_basal_safety_multiplier"
|
2017-01-25 20:20:39 +01:00
|
|
|
android:dialogMessage="@string/openapsama_current_basal_safety_multiplier_summary"
|
2017-01-25 15:18:01 +01:00
|
|
|
android:key="openapsama_current_basal_safety_multiplier" />
|
2017-01-26 12:07:25 +01:00
|
|
|
<com.andreabaccega.widget.ValidatingEditTextPreference
|
|
|
|
validate:testType="floatNumericRange"
|
|
|
|
validate:minNumber="0"
|
|
|
|
validate:maxNumber="10"
|
|
|
|
android:digits="0123456789.,"
|
2017-01-25 15:18:01 +01:00
|
|
|
android:defaultValue="1.2"
|
|
|
|
android:selectAllOnFocus="true"
|
|
|
|
android:singleLine="true"
|
|
|
|
android:inputType="numberDecimal"
|
2017-01-25 20:20:39 +01:00
|
|
|
android:maxLines="20"
|
2017-01-25 15:18:01 +01:00
|
|
|
android:title="@string/openapsama_autosens_max"
|
2017-01-25 20:20:39 +01:00
|
|
|
android:dialogMessage="@string/openapsama_autosens_max_summary"
|
2017-01-25 15:18:01 +01:00
|
|
|
android:key="openapsama_autosens_max"
|
|
|
|
android:dependency="openapsama_useautosens"/>
|
2017-01-26 12:07:25 +01:00
|
|
|
<com.andreabaccega.widget.ValidatingEditTextPreference
|
|
|
|
validate:testType="floatNumericRange"
|
|
|
|
validate:minNumber="0"
|
|
|
|
validate:maxNumber="10"
|
2017-01-25 15:18:01 +01:00
|
|
|
android:defaultValue="0.7"
|
|
|
|
android:selectAllOnFocus="true"
|
|
|
|
android:singleLine="true"
|
|
|
|
android:inputType="numberDecimal"
|
2017-01-25 20:20:39 +01:00
|
|
|
android:maxLines="20"
|
2017-01-25 15:18:01 +01:00
|
|
|
android:title="@string/openapsama_autosens_min"
|
2017-01-25 20:20:39 +01:00
|
|
|
android:dialogMessage="@string/openapsama_autosens_min_summary"
|
2017-01-25 15:18:01 +01:00
|
|
|
android:key="openapsama_autosens_min"
|
|
|
|
android:dependency="openapsama_useautosens"/>
|
2017-01-25 20:20:39 +01:00
|
|
|
<PreferenceScreen
|
|
|
|
android:title="@string/openapsama_autosens_adjusttargets">
|
|
|
|
<PreferenceCategory
|
|
|
|
android:title="@string/openapsama_autosens_adjusttargets">
|
|
|
|
<Preference android:summary="@string/openapsama_autosens_adjusttargets_summary" />
|
|
|
|
<SwitchPreference
|
|
|
|
android:defaultValue="true"
|
|
|
|
android:key="openapsama_autosens_adjusttargets"
|
|
|
|
android:dependency="openapsama_useautosens"
|
|
|
|
android:title="@string/openapsama_autosens_adjusttargets" />
|
|
|
|
</PreferenceCategory>
|
|
|
|
</PreferenceScreen>
|
|
|
|
<PreferenceScreen
|
|
|
|
android:title="@string/openapsama_skip_neutral_temps">
|
|
|
|
<PreferenceCategory
|
|
|
|
android:title="@string/openapsama_skip_neutral_temps">
|
|
|
|
<Preference android:summary="@string/openapsama_skip_neutral_temps_summary" />
|
|
|
|
<SwitchPreference
|
|
|
|
android:defaultValue="false"
|
|
|
|
android:title="@string/openapsama_skip_neutral_temps"
|
|
|
|
android:key="openapsama_skip_neutral_temps"
|
|
|
|
android:dependency="openapsama_useautosens" />
|
|
|
|
</PreferenceCategory>
|
|
|
|
</PreferenceScreen>
|
2017-01-26 12:07:25 +01:00
|
|
|
<com.andreabaccega.widget.ValidatingEditTextPreference
|
|
|
|
validate:testType="numericRange"
|
|
|
|
validate:minNumber="1"
|
|
|
|
validate:maxNumber="10"
|
|
|
|
android:digits="0123456789.,"
|
2017-01-25 15:18:01 +01:00
|
|
|
android:defaultValue="2"
|
|
|
|
android:selectAllOnFocus="true"
|
|
|
|
android:singleLine="true"
|
|
|
|
android:inputType="number"
|
2017-01-25 20:20:39 +01:00
|
|
|
android:maxLines="20"
|
2017-01-25 15:18:01 +01:00
|
|
|
android:title="@string/openapsama_bolussnooze_dia_divisor"
|
2017-01-25 20:20:39 +01:00
|
|
|
android:dialogMessage="@string/openapsama_bolussnooze_dia_divisor_summary"
|
2017-01-25 15:18:01 +01:00
|
|
|
android:key="openapsama_bolussnooze_dia_divisor" />
|
2017-01-26 12:07:25 +01:00
|
|
|
<com.andreabaccega.widget.ValidatingEditTextPreference
|
|
|
|
validate:testType="floatNumericRange"
|
|
|
|
validate:minNumber="0"
|
|
|
|
validate:maxNumber="10"
|
|
|
|
android:defaultValue="3.0"
|
2017-01-25 15:18:01 +01:00
|
|
|
android:selectAllOnFocus="true"
|
|
|
|
android:singleLine="true"
|
|
|
|
android:inputType="numberDecimal"
|
2017-01-25 20:20:39 +01:00
|
|
|
android:maxLines="20"
|
2017-01-25 15:18:01 +01:00
|
|
|
android:title="@string/openapsama_min_5m_carbimpact"
|
2017-01-25 20:20:39 +01:00
|
|
|
android:dialogMessage="@string/openapsama_min_5m_carbimpact_summary"
|
2017-01-25 15:18:01 +01:00
|
|
|
android:key="openapsama_min_5m_carbimpact" />
|
|
|
|
</PreferenceCategory>
|
2017-01-24 10:28:42 +01:00
|
|
|
</PreferenceScreen>
|
|
|
|
</PreferenceCategory>
|
|
|
|
</PreferenceScreen>
|