From 1fe1afe863fde957051774cf2d9936c314d342a2 Mon Sep 17 00:00:00 2001 From: Tao Bao Date: Tue, 1 May 2018 15:56:05 -0700 Subject: Move menu headers/items to std::vector. Test: mmma -j bootable/recovery Test: Run recovery_unit_test on marlin. Test: Build and boot into recovery image on angler. Check the UI that shows menu ('View recovery log', 'Wipe data', 'Run locale test'). Test: Start recovery with '--prompt_and_wipe_data'. Check the UI. Change-Id: If8a4209e0bb4ca64f719f9f9465d3b3589a69cdc --- stub_ui.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'stub_ui.h') diff --git a/stub_ui.h b/stub_ui.h index 362aab443..2ccd49115 100644 --- a/stub_ui.h +++ b/stub_ui.h @@ -19,6 +19,7 @@ #include #include +#include #include "ui.h" @@ -57,9 +58,10 @@ class StubRecoveryUI : public RecoveryUI { void ShowFile(const std::string& /* filename */) override {} // menu display - int ShowMenu(const char* const* /* headers */, const char* const* /* items */, - int initial_selection, bool /* menu_only */, - const std::function& /* key_handler */) override { + size_t ShowMenu(const std::vector& /* headers */, + const std::vector& /* items */, size_t initial_selection, + bool /* menu_only */, + const std::function& /* key_handler */) override { return initial_selection; } }; -- cgit v1.2.3