comboctl-main: Finish reading profile by pressing BACK to avoid vibration
When exiting the basal profile screens by pressing CHECK twice, a vibration happens. This can be avoided by instead pressing BACK until the main screen is reached. Signed-off-by: Carlos Rafael Giani <crg7475@mailbox.org>
This commit is contained in:
parent
3a29e8d4f2
commit
6ecc1073df
|
@ -2826,14 +2826,12 @@ class Pump(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// All factors retrieved. Press CHECK once to get back to the total
|
// All factors retrieved. Press BACK repeatedly until we are back at the main menu.
|
||||||
// basal rate screen, and then CHECK again to return to the main menu.
|
cycleToRTScreen(
|
||||||
|
rtNavigationContext,
|
||||||
rtNavigationContext.shortPressButton(RTNavigationButton.CHECK)
|
RTNavigationButton.BACK,
|
||||||
waitUntilScreenAppears(rtNavigationContext, ParsedScreen.BasalRateTotalScreen::class)
|
ParsedScreen.MainScreen::class
|
||||||
|
)
|
||||||
rtNavigationContext.shortPressButton(RTNavigationButton.CHECK)
|
|
||||||
waitUntilScreenAppears(rtNavigationContext, ParsedScreen.MainScreen::class)
|
|
||||||
|
|
||||||
getBasalProfileReporter.setCurrentProgressStage(BasicProgressStage.Finished)
|
getBasalProfileReporter.setCurrentProgressStage(BasicProgressStage.Finished)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue