AndroidAPS/app/src/main/res/xml/pref_smscommunicator.xml

53 lines
2.6 KiB
XML
Raw Normal View History

2016-07-14 23:29:21 +02:00
<?xml version="1.0" encoding="utf-8"?>
<androidx.preference.PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
2020-01-09 21:41:02 +01:00
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:validate="http://schemas.android.com/apk/res-auto">
2020-01-09 21:41:02 +01:00
2016-07-14 23:29:21 +02:00
<PreferenceCategory
android:key="@string/key_smscommunicator_settings"
2020-01-09 21:41:02 +01:00
android:title="@string/smscommunicator"
app:initialExpandedChildrenCount="0">
2016-07-14 23:29:21 +02:00
2020-01-09 21:41:02 +01:00
<info.nightscout.androidaps.utils.textValidator.ValidatingEditTextPreference
2017-04-09 21:50:05 +02:00
android:key="@string/key_smscommunicator_allowednumbers"
2019-04-08 16:39:41 +02:00
android:summary="@string/smscommunicator_allowednumbers_summary"
2020-01-09 21:41:02 +01:00
android:title="@string/smscommunicator_allowednumbers"
validate:testType="multiPhone" />
<SwitchPreference
android:defaultValue="false"
android:key="@string/key_smscommunicator_remotecommandsallowed"
android:title="@string/smscommunicator_remotecommandsallowed" />
<info.nightscout.androidaps.utils.textValidator.ValidatingEditTextPreference
android:defaultValue="15"
2020-01-09 21:41:02 +01:00
android:key="@string/key_smscommunicator_remotebolusmindistance"
android:summary="@string/smscommunicator_remotebolusmindistance_summary"
android:title="@string/smscommunicator_remotebolusmindistance"
validate:maxNumber="60"
2020-01-09 21:41:02 +01:00
validate:minNumber="3"
validate:testType="numericRange" />
2016-07-14 23:29:21 +02:00
<info.nightscout.androidaps.utils.textValidator.ValidatingEditTextPreference
2020-03-20 17:31:30 +01:00
android:dependency="@string/key_smscommunicator_remotecommandsallowed"
2020-03-20 16:22:38 +01:00
android:key="@string/key_smscommunicator_otp_password"
android:summary="@string/smscommunicator_otp_pin_summary"
android:title="@string/smscommunicator_otp_pin"
validate:testType="pinStrength" />
<Preference
android:dependency="@string/key_smscommunicator_remotecommandsallowed"
android:key="otpsetup"
android:title="@string/smscomunicator_tab_otp_label">
<intent android:action="info.nightscout.androidaps.plugins.general.smsCommunicator.activities.SmsCommunicatorOtpActivity" />
</Preference>
2020-12-25 12:06:54 +01:00
<SwitchPreference
android:defaultValue="true"
android:key="@string/key_smscommunicator_report_pump_ureachable"
android:summary="@string/smscommunicator_report_pump_ureachable_summary"
android:title="@string/smscommunicator_pump_ureachable" />
2016-07-14 23:29:21 +02:00
</PreferenceCategory>
</androidx.preference.PreferenceScreen>