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 --- ui.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ui.h') diff --git a/ui.h b/ui.h index 39284268d..a74b14f85 100644 --- a/ui.h +++ b/ui.h @@ -134,6 +134,8 @@ class RecoveryUI { // --- menu display --- + virtual void SetTitle(const std::vector& lines) = 0; + // Displays a menu with the given 'headers' and 'items'. The supplied 'key_handler' callback, // which is typically bound to Device::HandleMenuKey(), should return the expected action for the // given key code and menu visibility (e.g. to move the cursor or to select an item). Caller sets -- cgit v1.2.3