From 0e577ee424acf7a5e6600560d702ab3c8020a29f Mon Sep 17 00:00:00 2001 From: Jerry Zhang Date: Mon, 7 May 2018 11:21:10 -0700 Subject: recovery: Add ability to set title lines Add the ability to change the contents of the title lines, displayed at the top of the screen. Once set, the same lines are displayed for all menus until changed again. Test: Recovery works Bug: 78793464 Change-Id: I7ef5594b0d76dbbd2e01ad7508863af1270b2a2a --- screen_ui.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'screen_ui.h') diff --git a/screen_ui.h b/screen_ui.h index 2d6b621d5..c90a2cd17 100644 --- a/screen_ui.h +++ b/screen_ui.h @@ -141,6 +141,7 @@ class ScreenRecoveryUI : public RecoveryUI { size_t ShowMenu(const std::vector& headers, const std::vector& items, size_t initial_selection, bool menu_only, const std::function& key_handler) override; + void SetTitle(const std::vector& lines) override; void KeyLongPress(int) override; @@ -266,6 +267,8 @@ class ScreenRecoveryUI : public RecoveryUI { bool show_text; bool show_text_ever; // has show_text ever been true? + std::vector title_lines_; + bool scrollable_menu_; std::unique_ptr menu_; -- cgit v1.2.3