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 --- wear_ui.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'wear_ui.h') diff --git a/wear_ui.h b/wear_ui.h index fcbbee289..c9a9f0e13 100644 --- a/wear_ui.h +++ b/wear_ui.h @@ -17,6 +17,9 @@ #ifndef RECOVERY_WEAR_UI_H #define RECOVERY_WEAR_UI_H +#include +#include + #include "screen_ui.h" class WearRecoveryUI : public ScreenRecoveryUI { @@ -33,8 +36,8 @@ class WearRecoveryUI : public ScreenRecoveryUI { // Recovery, build id and etc) and the bottom lines that may otherwise go out of the screen. const int kMenuUnusableRows; - void StartMenu(const char* const* headers, const char* const* items, - int initial_selection) override; + void StartMenu(const std::vector& headers, const std::vector& items, + size_t initial_selection) override; int GetProgressBaseline() const override; -- cgit v1.2.3