aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChippa-a <bagirovvusal99@gmail.com>2024-03-13 21:06:36 +0300
committerVusal Bagirov <bagirovvusal99@gmail.com>2024-03-30 14:07:24 +0000
commit8904d2a254c5263caded20af8fde209f8b37f22d (patch)
tree8104928ce730abc79f7f07d8be256588719c2d0e
parentcb54992c55a5ee37fd04dffe59d2d3e0dba811ef (diff)
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
-rw-r--r--recovery_ui/screen_ui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/recovery_ui/screen_ui.cpp b/recovery_ui/screen_ui.cpp
index 12e4167d..5d713d6f 100644
--- a/recovery_ui/screen_ui.cpp
+++ b/recovery_ui/screen_ui.cpp
@@ -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