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

Commit 56728e6c authored by Ben Fennema's avatar Ben Fennema Committed by Automerger Merge Worker
Browse files

Merge "Revert "recovery: fix UI error when directories too many [1/1]"" into...

Merge "Revert "recovery: fix UI error when directories too many [1/1]"" into main am: 1fb40d75 am: 4b961159

Original change: https://android-review.googlesource.com/c/platform/bootable/recovery/+/2823390



Change-Id: I212fe939b360abd9d8b879404207103481c5b6b8
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 3d8bcba7 4b961159
Loading
Loading
Loading
Loading
+1 −9
Original line number Diff line number Diff line
@@ -181,15 +181,7 @@ int TextMenu::DrawItems(int x, int y, int screen_width, bool long_press) const {
  if (!scrollable()) {
    offset += draw_funcs_.DrawHorizontalRule(y + offset) + 4;
  }

  int items_block_height = gr_fb_height() - y - offset;;
  int total = (char_height_ + 4) * (selection() + 1);;
  int j = 0;
  if (total > items_block_height) {
    j = ((total - items_block_height) / (char_height_ + 4)) + 1;
  }

  for (size_t i = (MenuStart() + j); i < MenuEnd(); ++i) {
  for (size_t i = MenuStart(); i < MenuEnd(); ++i) {
    bool bold = false;
    if (i == selection()) {
      // Draw the highlight bar.