mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-08 17:05:44 +00:00
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 <shchen@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/517283
Reviewed-by: Randall Spangler <rspangler@chromium.org>
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user