Add prefernces.json layout changes

This commit is contained in:
viktoria 2017-01-25 20:20:39 +01:00
parent 0838ede6a3
commit 8e095fefaf
2 changed files with 38 additions and 19 deletions

View file

@ -428,8 +428,6 @@
<string name="danar_stats_tbb2">TBB * 2</string> <string name="danar_stats_tbb2">TBB * 2</string>
<string name="initializing">Initializing ...</string> <string name="initializing">Initializing ...</string>
<string name="careportal_temptarget">Temporary Target</string> <string name="careportal_temptarget">Temporary Target</string>
<string name="openapsama_autosens_adjusttargets">Allow autosens to adjust targets</string>
<string name="openapsama_autosens_adjusttargets_summary">This is used to allow autosens to adjust BG targets, in addition to ISF and basals.</string>
<string name="actions_shortname">ACT</string> <string name="actions_shortname">ACT</string>
<string name="configbuilder_shortname">CONF</string> <string name="configbuilder_shortname">CONF</string>
<string name="loop_shortname">LOOP</string> <string name="loop_shortname">LOOP</string>
@ -461,6 +459,8 @@
<string name="openapsama_autosens_max_summary">This is a multiplier cap for autosens (and soon autotune) to set a 20% max limit on how high the autosens ratio can be, which in turn determines how high autosens can adjust basals, how low it can adjust ISF, and how low it can set the BG target.</string> <string name="openapsama_autosens_max_summary">This is a multiplier cap for autosens (and soon autotune) to set a 20% max limit on how high the autosens ratio can be, which in turn determines how high autosens can adjust basals, how low it can adjust ISF, and how low it can set the BG target.</string>
<string name="openapsama_autosens_min">autosens_min</string> <string name="openapsama_autosens_min">autosens_min</string>
<string name="openapsama_autosens_min_summary">The other side of the autosens safety limits, putting a cap on how low autosens can adjust basals, and how high it can adjust ISF and BG targets.</string> <string name="openapsama_autosens_min_summary">The other side of the autosens safety limits, putting a cap on how low autosens can adjust basals, and how high it can adjust ISF and BG targets.</string>
<string name="openapsama_autosens_adjusttargets">autosens_adjust_targets</string>
<string name="openapsama_autosens_adjusttargets_summary">This is used to allow autosens to adjust BG targets, in addition to ISF and basals.</string>
<string name="openapsama_skip_neutral_temps">skip_neutral_temps</string> <string name="openapsama_skip_neutral_temps">skip_neutral_temps</string>
<string name="openapsama_skip_neutral_temps_summary">Defaults to false, so that OpenAPS will set temps whenever it can, so it will be easier to see if the system is working, even when you are offline. This means OpenAPS will set a “neutral” temp (same as your default basal) if no adjustments are needed. If you are a light sleeper and the “on the hour” buzzing or beeping wakes you up (even in vibrate mode), you may want to turn this to “true” to skip this setting. However, we recommend it for most people who will be using this system on the go and out of constant connectivity.</string> <string name="openapsama_skip_neutral_temps_summary">Defaults to false, so that OpenAPS will set temps whenever it can, so it will be easier to see if the system is working, even when you are offline. This means OpenAPS will set a “neutral” temp (same as your default basal) if no adjustments are needed. If you are a light sleeper and the “on the hour” buzzing or beeping wakes you up (even in vibrate mode), you may want to turn this to “true” to skip this setting. However, we recommend it for most people who will be using this system on the go and out of constant connectivity.</string>
<string name="openapsama_bolussnooze_dia_divisor">bolussnooze_dia_divisor</string> <string name="openapsama_bolussnooze_dia_divisor">bolussnooze_dia_divisor</string>

View file

@ -31,24 +31,27 @@
android:defaultValue="3" android:defaultValue="3"
android:selectAllOnFocus="true" android:selectAllOnFocus="true"
android:inputType="number" android:inputType="number"
android:maxLines="20"
android:title="@string/openapsama_max_daily_safety_multiplier" android:title="@string/openapsama_max_daily_safety_multiplier"
android:summary="@string/openapsama_max_daily_safety_multiplier_summary" android:dialogMessage="@string/openapsama_max_daily_safety_multiplier_summary"
android:key="openapsama_max_daily_safety_multiplier" /> android:key="openapsama_max_daily_safety_multiplier" />
<EditTextPreference <EditTextPreference
android:defaultValue="4" android:defaultValue="4"
android:selectAllOnFocus="true" android:selectAllOnFocus="true"
android:singleLine="true" android:singleLine="true"
android:inputType="number" android:inputType="number"
android:maxLines="20"
android:title="@string/openapsama_current_basal_safety_multiplier" android:title="@string/openapsama_current_basal_safety_multiplier"
android:summary="@string/openapsama_max_daily_safety_multiplier_summary" android:dialogMessage="@string/openapsama_current_basal_safety_multiplier_summary"
android:key="openapsama_current_basal_safety_multiplier" /> android:key="openapsama_current_basal_safety_multiplier" />
<EditTextPreference <EditTextPreference
android:defaultValue="1.2" android:defaultValue="1.2"
android:selectAllOnFocus="true" android:selectAllOnFocus="true"
android:singleLine="true" android:singleLine="true"
android:inputType="numberDecimal" android:inputType="numberDecimal"
android:maxLines="20"
android:title="@string/openapsama_autosens_max" android:title="@string/openapsama_autosens_max"
android:summary="@string/openapsama_autosens_max_summary" android:dialogMessage="@string/openapsama_autosens_max_summary"
android:key="openapsama_autosens_max" android:key="openapsama_autosens_max"
android:dependency="openapsama_useautosens"/> android:dependency="openapsama_useautosens"/>
<EditTextPreference <EditTextPreference
@ -56,36 +59,52 @@
android:selectAllOnFocus="true" android:selectAllOnFocus="true"
android:singleLine="true" android:singleLine="true"
android:inputType="numberDecimal" android:inputType="numberDecimal"
android:maxLines="20"
android:title="@string/openapsama_autosens_min" android:title="@string/openapsama_autosens_min"
android:summary="@string/openapsama_autosens_min_summary" android:dialogMessage="@string/openapsama_autosens_min_summary"
android:key="openapsama_autosens_min" android:key="openapsama_autosens_min"
android:dependency="openapsama_useautosens"/> android:dependency="openapsama_useautosens"/>
<SwitchPreference <PreferenceScreen
android:defaultValue="true" android:title="@string/openapsama_autosens_adjusttargets">
android:key="openapsama_autosens_adjusttargets" <PreferenceCategory
android:dependency="openapsama_useautosens" android:title="@string/openapsama_autosens_adjusttargets">
android:title="@string/openapsama_autosens_adjusttargets" <Preference android:summary="@string/openapsama_autosens_adjusttargets_summary" />
android:summary="@string/openapsama_autosens_adjusttargets_summary" /> <SwitchPreference
<SwitchPreference android:defaultValue="true"
android:defaultValue="false" android:key="openapsama_autosens_adjusttargets"
android:title="@string/openapsama_skip_neutral_temps" android:dependency="openapsama_useautosens"
android:summary="@string/openapsama_skip_neutral_temps_summary" android:title="@string/openapsama_autosens_adjusttargets" />
android:key="openapsama_skip_neutral_temps" /> </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>
<EditTextPreference <EditTextPreference
android:defaultValue="2" android:defaultValue="2"
android:selectAllOnFocus="true" android:selectAllOnFocus="true"
android:singleLine="true" android:singleLine="true"
android:inputType="number" android:inputType="number"
android:maxLines="20"
android:title="@string/openapsama_bolussnooze_dia_divisor" android:title="@string/openapsama_bolussnooze_dia_divisor"
android:summary="@string/openapsama_bolussnooze_dia_divisor_summary" android:dialogMessage="@string/openapsama_bolussnooze_dia_divisor_summary"
android:key="openapsama_bolussnooze_dia_divisor" /> android:key="openapsama_bolussnooze_dia_divisor" />
<EditTextPreference <EditTextPreference
android:defaultValue="3" android:defaultValue="3"
android:selectAllOnFocus="true" android:selectAllOnFocus="true"
android:singleLine="true" android:singleLine="true"
android:inputType="numberDecimal" android:inputType="numberDecimal"
android:maxLines="20"
android:title="@string/openapsama_min_5m_carbimpact" android:title="@string/openapsama_min_5m_carbimpact"
android:summary="@string/openapsama_min_5m_carbimpact_summary" android:dialogMessage="@string/openapsama_min_5m_carbimpact_summary"
android:key="openapsama_min_5m_carbimpact" /> android:key="openapsama_min_5m_carbimpact" />
</PreferenceCategory> </PreferenceCategory>
</PreferenceScreen> </PreferenceScreen>