diff options
author | Tao Bao <tbao@google.com> | 2018-05-04 01:21:16 +0200 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2018-05-04 01:21:16 +0200 |
commit | 0d9ed295418d3d6e2dd7b15582b39ab583972d02 (patch) | |
tree | e4a6d12bc2aca2b7b5cffbe213780ca894e31306 /stub_ui.h | |
parent | Merge "updater_sample: update tests" (diff) | |
parent | Merge "Move menu headers/items to std::vector<std::string>." (diff) | |
download | android_bootable_recovery-0d9ed295418d3d6e2dd7b15582b39ab583972d02.tar android_bootable_recovery-0d9ed295418d3d6e2dd7b15582b39ab583972d02.tar.gz android_bootable_recovery-0d9ed295418d3d6e2dd7b15582b39ab583972d02.tar.bz2 android_bootable_recovery-0d9ed295418d3d6e2dd7b15582b39ab583972d02.tar.lz android_bootable_recovery-0d9ed295418d3d6e2dd7b15582b39ab583972d02.tar.xz android_bootable_recovery-0d9ed295418d3d6e2dd7b15582b39ab583972d02.tar.zst android_bootable_recovery-0d9ed295418d3d6e2dd7b15582b39ab583972d02.zip |
Diffstat (limited to 'stub_ui.h')
-rw-r--r-- | stub_ui.h | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -19,6 +19,7 @@ #include <functional> #include <string> +#include <vector> #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<int(int, bool)>& /* key_handler */) override { + size_t ShowMenu(const std::vector<std::string>& /* headers */, + const std::vector<std::string>& /* items */, size_t initial_selection, + bool /* menu_only */, + const std::function<int(int, bool)>& /* key_handler */) override { return initial_selection; } }; |