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

Commit 8904d2a2 authored by Chippa-a's avatar Chippa-a Committed by Vusal Bagirov
Browse files

recovery_ui: Respect margin_height while drawing battery capacity status

Some devices can use a custom margin height for recovery. Consider this
to draw battery capacity status correctly.

Change-Id: Ib66e88a61db17d6b4735f7f706e718de26df83d8
parent cb54992c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -882,7 +882,7 @@ void ScreenRecoveryUI::draw_menu_and_text_buffer_locked(
// Draws the battery capacity on the screen. Should only be called with updateMutex locked.
void ScreenRecoveryUI::draw_battery_capacity_locked() {
  int x;
  int y = gr_get_height(lineage_logo_.get());
  int y = margin_height_ + gr_get_height(lineage_logo_.get());
  int icon_x, icon_y, icon_h, icon_w;

  // Battery status