apply percentage to QuickWizard entries

This commit is contained in:
Milos Kozak 2019-12-09 21:26:08 +01:00
parent 66ec1d05ea
commit b69af95791
2 changed files with 7 additions and 6 deletions

View file

@ -125,7 +125,8 @@ public class QuickWizardEntry {
trend = true; trend = true;
} }
return new BolusWizard(profile, profileName, tempTarget, carbs(), cob, bg, 0d, 100, true, useCOB() == YES, bolusIOB, basalIOB, superBolus, useTempTarget() == YES, trend, "QuickWizard"); double percentage = SP.getDouble(R.string.key_boluswizard_percentage, 100.0);
return new BolusWizard(profile, profileName, tempTarget, carbs(), cob, bg, 0d, percentage, true, useCOB() == YES, bolusIOB, basalIOB, superBolus, useTempTarget() == YES, trend, "QuickWizard");
} }
public String buttonText() { public String buttonText() {

View file

@ -128,11 +128,6 @@
android:summary="@string/show_calibration_button_summary" android:summary="@string/show_calibration_button_summary"
android:title="@string/overview_calibration" /> android:title="@string/overview_calibration" />
<SwitchPreference
android:defaultValue="false"
android:key="@string/key_show_notes_entry_dialogs"
android:title="@string/overview_show_notes_field_in_dialogs_title" />
</PreferenceScreen> </PreferenceScreen>
<Preference <Preference
@ -141,6 +136,11 @@
<intent android:action="info.nightscout.androidaps.plugins.general.overview.activities.QuickWizardListActivity" /> <intent android:action="info.nightscout.androidaps.plugins.general.overview.activities.QuickWizardListActivity" />
</Preference> </Preference>
<SwitchPreference
android:defaultValue="false"
android:key="@string/key_show_notes_entry_dialogs"
android:title="@string/overview_show_notes_field_in_dialogs_title" />
<PreferenceScreen android:title="@string/advancedsettings_title" android:key="@string/key_advancedsettings"> <PreferenceScreen android:title="@string/advancedsettings_title" android:key="@string/key_advancedsettings">
<com.andreabaccega.widget.ValidatingEditTextPreference <com.andreabaccega.widget.ValidatingEditTextPreference