mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-11-27 11:44:02 +00:00
detachables: fix setting selected_idx of DEV_WARNING menu
Selecting cancel from DEV_MENU should not set the selected_idx
to loc. It should be set to power off.
BUG=b:35585623
BRANCH=None
TEST=go to DEV_MENU, hit cancel and make sure that power off is
selected item
Change-Id: I8cae397c7174b5bd52a3a27736cd3d5a57412e63
Signed-off-by: Shelley Chen <shchen@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/667933
Reviewed-by: Julius Werner <jwerner@chromium.org>
This commit is contained in:
@@ -479,7 +479,7 @@ VbError_t vb2_update_menu(struct vb2_context *ctx)
|
|||||||
* 2. Default to power off option.
|
* 2. Default to power off option.
|
||||||
*/
|
*/
|
||||||
vb2_set_menu_items(VB_MENU_DEV_WARNING,
|
vb2_set_menu_items(VB_MENU_DEV_WARNING,
|
||||||
loc);
|
VB_WARN_POWER_OFF);
|
||||||
break;
|
break;
|
||||||
case VB_DEV_POWER_OFF:
|
case VB_DEV_POWER_OFF:
|
||||||
/* Power off */
|
/* Power off */
|
||||||
|
|||||||
Reference in New Issue
Block a user