From de4cefc915938a787575786c3526599f61de1a63 Mon Sep 17 00:00:00 2001 From: Shelley Chen Date: Thu, 18 May 2017 14:15:33 -0700 Subject: [PATCH] detachables: Remove locale switch on up arrow This was old code that switched locale when pressing up arrow. BUG=b:35585623 BRANCH=None TEST=Boot to recovery and make sure up arrow doesn't change the locale. Change-Id: Ibb4d2785170a2e36d599e4af56de3dfd922c5957 Signed-off-by: Shelley Chen Reviewed-on: https://chromium-review.googlesource.com/517283 Reviewed-by: Randall Spangler --- firmware/lib/vboot_ui_menu.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/firmware/lib/vboot_ui_menu.c b/firmware/lib/vboot_ui_menu.c index db8c432ef5..a481c03588 100644 --- a/firmware/lib/vboot_ui_menu.c +++ b/firmware/lib/vboot_ui_menu.c @@ -1037,14 +1037,6 @@ VbError_t vb2_recovery_menu(struct vb2_context *ctx, VbCommonParams *cparams) &menu_size); if (current_menu_idx > 0) current_menu_idx--; - vb2_nv_set(ctx, VB2_NV_LOCALIZATION_INDEX, current_menu_idx); - vb2_nv_set(ctx, VB2_NV_BACKUP_NVRAM_REQUEST, 1); -#ifdef SAVE_LOCALE_IMMEDIATELY - if (ctx->flags & VB2_CONTEXT_NVDATA_CHANGED) { - VbExNvStorageWrite(ctx.nvdata); - ctx.flags &= ~VB2_CONTEXT_NVDATA_CHANGED; - } -#endif vb2_draw_current_screen(ctx, cparams); break; case VB_BUTTON_VOL_DOWN: