Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cd3d3592 authored by Elliott Hughes's avatar Elliott Hughes Committed by Android Git Automerger
Browse files

am 733deb26: Merge "Make the recovery menus wrap."

* commit '733deb26':
  Make the recovery menus wrap.
parents 30ad0461 733deb26
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -526,8 +526,11 @@ int ScreenRecoveryUI::SelectMenu(int sel) {
    if (show_menu > 0) {
        old_sel = menu_sel;
        menu_sel = sel;
        if (menu_sel < 0) menu_sel = 0;
        if (menu_sel >= menu_items) menu_sel = menu_items-1;

        // Wrap at top and bottom.
        if (menu_sel < 0) menu_sel = menu_items - 1;
        if (menu_sel >= menu_items) menu_sel = 0;

        sel = menu_sel;
        if (menu_sel != old_sel) update_screen_locked();
    }