121 lines
6.4 KiB
XML
121 lines
6.4 KiB
XML
<?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="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>
|
|
<PreferenceCategory
|
|
android:title="OpenAPS preferences.json">
|
|
<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>
|
|
<com.andreabaccega.widget.ValidatingEditTextPreference
|
|
validate:testType="numericRange"
|
|
validate:minNumber="1"
|
|
validate:maxNumber="10"
|
|
android:digits="0123456789.,"
|
|
android:defaultValue="3"
|
|
android:selectAllOnFocus="true"
|
|
android:inputType="number"
|
|
android:maxLines="20"
|
|
android:title="@string/openapsama_max_daily_safety_multiplier"
|
|
android:dialogMessage="@string/openapsama_max_daily_safety_multiplier_summary"
|
|
android:key="openapsama_max_daily_safety_multiplier" />
|
|
<com.andreabaccega.widget.ValidatingEditTextPreference
|
|
validate:testType="numericRange"
|
|
validate:minNumber="1"
|
|
validate:maxNumber="10"
|
|
android:digits="0123456789.,"
|
|
android:defaultValue="4"
|
|
android:selectAllOnFocus="true"
|
|
android:singleLine="true"
|
|
android:inputType="number"
|
|
android:maxLines="20"
|
|
android:title="@string/openapsama_current_basal_safety_multiplier"
|
|
android:dialogMessage="@string/openapsama_current_basal_safety_multiplier_summary"
|
|
android:key="openapsama_current_basal_safety_multiplier" />
|
|
<com.andreabaccega.widget.ValidatingEditTextPreference
|
|
validate:testType="floatNumericRange"
|
|
validate:floatminNumber="0.5"
|
|
validate:floatmaxNumber="3"
|
|
android:digits="0123456789.,"
|
|
android:defaultValue="1.2"
|
|
android:selectAllOnFocus="true"
|
|
android:singleLine="true"
|
|
android:inputType="numberDecimal"
|
|
android:maxLines="20"
|
|
android:title="@string/openapsama_autosens_max"
|
|
android:dialogMessage="@string/openapsama_autosens_max_summary"
|
|
android:key="openapsama_autosens_max" />
|
|
<com.andreabaccega.widget.ValidatingEditTextPreference
|
|
validate:testType="floatNumericRange"
|
|
validate:floatminNumber="0.1"
|
|
validate:floatmaxNumber="1.0"
|
|
android:defaultValue="0.7"
|
|
android:selectAllOnFocus="true"
|
|
android:singleLine="true"
|
|
android:inputType="numberDecimal"
|
|
android:maxLines="20"
|
|
android:title="@string/openapsama_autosens_min"
|
|
android:dialogMessage="@string/openapsama_autosens_min_summary"
|
|
android:key="openapsama_autosens_min" />
|
|
<SwitchPreference
|
|
android:defaultValue="true"
|
|
android:key="openapsama_autosens_adjusttargets"
|
|
android:title="@string/openapsama_autosens_adjusttargets"
|
|
android:summary="@string/openapsama_autosens_adjusttargets_summary"/>
|
|
<com.andreabaccega.widget.ValidatingEditTextPreference
|
|
validate:testType="numericRange"
|
|
validate:minNumber="1"
|
|
validate:maxNumber="5"
|
|
android:digits="0123456789.,"
|
|
android:defaultValue="2"
|
|
android:selectAllOnFocus="true"
|
|
android:singleLine="true"
|
|
android:inputType="number"
|
|
android:maxLines="20"
|
|
android:title="@string/openapsama_bolussnooze_dia_divisor"
|
|
android:dialogMessage="@string/openapsama_bolussnooze_dia_divisor_summary"
|
|
android:key="openapsama_bolussnooze_dia_divisor" />
|
|
<com.andreabaccega.widget.ValidatingEditTextPreference
|
|
validate:testType="floatNumericRange"
|
|
validate:floatminNumber="0.1"
|
|
validate:floatmaxNumber="5.0"
|
|
android:defaultValue="3.0"
|
|
android:selectAllOnFocus="true"
|
|
android:singleLine="true"
|
|
android:inputType="numberDecimal"
|
|
android:maxLines="20"
|
|
android:title="@string/openapsama_min_5m_carbimpact"
|
|
android:dialogMessage="@string/openapsama_min_5m_carbimpact_summary"
|
|
android:key="openapsama_min_5m_carbimpact" />
|
|
</PreferenceCategory>
|
|
</PreferenceScreen>
|
|
</PreferenceCategory>
|
|
</PreferenceScreen>
|