2016-07-14 23:29:21 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8"?>
|
2020-01-08 20:20:20 +01:00
|
|
|
<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"
|
2019-11-07 10:39:17 +01:00
|
|
|
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
|
2021-02-24 17:19:52 +01:00
|
|
|
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" />
|
|
|
|
|
2020-01-08 20:20:20 +01:00
|
|
|
<info.nightscout.androidaps.utils.textValidator.ValidatingEditTextPreference
|
2019-11-07 10:39:17 +01:00
|
|
|
android:defaultValue="15"
|
2020-01-09 21:41:02 +01:00
|
|
|
android:key="@string/key_smscommunicator_remotebolusmindistance"
|
2019-11-07 10:39:17 +01:00
|
|
|
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
|
|
|
|
2020-02-10 16:54:18 +01: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"
|
2020-02-10 16:54:18 +01:00
|
|
|
android:summary="@string/smscommunicator_otp_pin_summary"
|
|
|
|
android:title="@string/smscommunicator_otp_pin"
|
|
|
|
validate:testType="pinStrength" />
|
|
|
|
|
2020-09-09 11:53:39 +02:00
|
|
|
<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>
|
|
|
|
|
2020-01-08 20:20:20 +01:00
|
|
|
</androidx.preference.PreferenceScreen>
|