Add prefernces.json put hyperlink and warning there

This commit is contained in:
viktoria 2017-01-25 20:41:33 +01:00
parent 8e095fefaf
commit fd6432f808
2 changed files with 8 additions and 0 deletions

View file

@ -467,5 +467,7 @@
<string name="openapsama_bolussnooze_dia_divisor_summary">Bolus snooze is enacted after you do a meal bolus, so the loop wont counteract with low temps when youve just eaten. The example here and default is 2; so a 3 hour DIA means that bolus snooze will be gradually phased out over 1.5 hours (3DIA/2).</string>
<string name="openapsama_min_5m_carbimpact">min_5m_carbimpact</string>
<string name="openapsama_min_5m_carbimpact_summary">This is a setting for default carb absorption impact per 5 minutes. The default is an expected 3mg/dl/5min. This affects how fast COB are decayed, and how much carb absorption is assumed in calculating future predicted BG, when BG is falling more than expected, or not rising as much as expected.</string>
<string name="openapsama_link_to_preferncejson_doc_txt">Attention!\nNormally you do not have to change these values below. Please CLICK HERE and READ the text and make sure you UNDERSTAND it before change any of these values.</string>
<string name="openapsama_link_to_preferncejson_doc">http://openaps.readthedocs.io/en/latest/docs/walkthrough/phase-3/beyond-low-glucose-suspend.html</string>
</resources>

View file

@ -27,6 +27,12 @@
</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>
<EditTextPreference
android:defaultValue="3"
android:selectAllOnFocus="true"