diff options
author | Alessandro Astone <ales.astone@gmail.com> | 2019-03-29 00:16:49 +0100 |
---|---|---|
committer | Michael Bestas <mkbestas@lineageos.org> | 2019-04-05 02:12:01 +0300 |
commit | 54f55eddc17f2c9795d8301a3a06f2a780936a73 (patch) | |
tree | 623c32b47a8a6094d218cd248a884caf72277c2e | |
parent | 92a8ed5eef2a3b6d139aec1e89733c96ca377f7b (diff) | |
download | android_bootable_recovery-54f55eddc17f2c9795d8301a3a06f2a780936a73.tar.gz android_bootable_recovery-54f55eddc17f2c9795d8301a3a06f2a780936a73.tar.bz2 android_bootable_recovery-54f55eddc17f2c9795d8301a3a06f2a780936a73.zip |
recovery: always begin showing menu from the start
Change-Id: I45775c1ebbd4a84e0d67d0f573b9aae97ab55a8b
-rw-r--r-- | screen_ui.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/screen_ui.cpp b/screen_ui.cpp index c3fe19a3..f3d919ce 100644 --- a/screen_ui.cpp +++ b/screen_ui.cpp @@ -1174,10 +1174,8 @@ void ScreenRecoveryUI::StartMenu(bool is_main, menu_type_t type, const char* con } show_menu = true; menu_sel = initial_selection; + menu_show_start = 0; draw_screen_locked(); - if (menu_sel < menu_show_start) { - menu_show_start = menu_sel; - } if (menu_sel >= menu_show_start + menu_show_count) { menu_show_start = menu_sel - (menu_show_count - 1); } |