Tidepool: fix prefs category/header.

This commit is contained in:
Johannes Mockenhaupt 2019-07-14 11:52:51 +02:00
parent 8686560ec8
commit 35cc095f8b
No known key found for this signature in database
GPG key ID: 9E1EA6AF7BBBB0D1

View file

@ -1,57 +1,61 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" <PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
android:key="tidepool_upload_screen"
android:summary="@string/summary_tidepool_upload_screen"
android:title="@string/tidepool">
<EditTextPreference <PreferenceCategory
android:key="@string/key_tidepool_username" android:key="tidepool_upload_screen"
android:summary="@string/summary_tidepool_username" android:summary="@string/summary_tidepool_upload_screen"
android:title="@string/title_tidepool_username" /> android:title="@string/tidepool">
<EditTextPreference
android:inputType="textPassword" <EditTextPreference
android:key="@string/key_tidepool_password" android:key="@string/key_tidepool_username"
android:summary="@string/summary_tidepool_password" android:summary="@string/summary_tidepool_username"
android:title="@string/title_tidepool_password" /> android:title="@string/title_tidepool_username" />
<Preference <EditTextPreference
android:key="@string/key_tidepool_test_login" android:inputType="textPassword"
android:title="@string/title_tidepool_test_login" /> android:key="@string/key_tidepool_password"
<CheckBoxPreference android:summary="@string/summary_tidepool_password"
android:defaultValue="true" android:title="@string/title_tidepool_password" />
android:key="@string/key_tidepool_upload_cgm" <Preference
android:title="@string/tidepool_upload_cgm" /> android:key="@string/key_tidepool_test_login"
<CheckBoxPreference android:title="@string/title_tidepool_test_login" />
android:defaultValue="true" <CheckBoxPreference
android:key="@string/key_tidepool_upload_bolus" android:defaultValue="true"
android:title="@string/tidepool_upload_bolus" /> android:key="@string/key_tidepool_upload_cgm"
<CheckBoxPreference android:title="@string/tidepool_upload_cgm" />
android:defaultValue="true" <CheckBoxPreference
android:key="@string/key_tidepool_upload_bg" android:defaultValue="true"
android:title="@string/tidepool_upload_bg" /> android:key="@string/key_tidepool_upload_bolus"
<CheckBoxPreference android:title="@string/tidepool_upload_bolus" />
android:defaultValue="true" <CheckBoxPreference
android:key="@string/key_tidepool_upload_tbr" android:defaultValue="true"
android:title="@string/tidepool_upload_tbr" /> android:key="@string/key_tidepool_upload_bg"
<CheckBoxPreference android:title="@string/tidepool_upload_bg" />
android:defaultValue="true" <CheckBoxPreference
android:key="@string/key_tidepool_upload_profile" android:defaultValue="true"
android:title="@string/tidepool_upload_profile" /> android:key="@string/key_tidepool_upload_tbr"
<CheckBoxPreference android:title="@string/tidepool_upload_tbr" />
android:defaultValue="true" <CheckBoxPreference
android:enabled="false" android:defaultValue="true"
android:key="@string/key_tidepool_dev_servers" android:key="@string/key_tidepool_upload_profile"
android:summary="@string/summary_tidepool_dev_servers" android:title="@string/tidepool_upload_profile" />
android:title="@string/title_tidepool_dev_servers" /> <CheckBoxPreference
<CheckBoxPreference android:defaultValue="true"
android:defaultValue="false" android:enabled="false"
android:key="@string/key_tidepool_only_while_charging" android:key="@string/key_tidepool_dev_servers"
android:summary="Upload data only when charging" android:summary="@string/summary_tidepool_dev_servers"
android:title="Only when charging" /> android:title="@string/title_tidepool_dev_servers" />
<CheckBoxPreference <CheckBoxPreference
android:defaultValue="false" android:defaultValue="false"
android:key="@string/key_tidepool_only_while_unmetered" android:key="@string/key_tidepool_only_while_charging"
android:summary="Upload data only when connected to an unmetered network like Wifi" android:summary="Upload data only when charging"
android:title="Only on Wifi" /> android:title="Only when charging" />
<CheckBoxPreference
android:defaultValue="false"
android:key="@string/key_tidepool_only_while_unmetered"
android:summary="Upload data only when connected to an unmetered network like Wifi"
android:title="Only on Wifi" />
</PreferenceCategory>
</PreferenceScreen> </PreferenceScreen>