diff options
author | Tao Bao <tbao@google.com> | 2018-05-01 22:32:37 +0200 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2018-05-01 22:32:37 +0200 |
commit | cac3ec3513050b3835e059dd540cfad74a60e1c8 (patch) | |
tree | 03eda9404b106cff6d8186940355c7b957ec0ea2 /stub_ui.h | |
parent | Merge "updater_sample: add FileDownloader" (diff) | |
parent | Add ScreenRecoveryUI::ShowMenu(). (diff) | |
download | android_bootable_recovery-cac3ec3513050b3835e059dd540cfad74a60e1c8.tar android_bootable_recovery-cac3ec3513050b3835e059dd540cfad74a60e1c8.tar.gz android_bootable_recovery-cac3ec3513050b3835e059dd540cfad74a60e1c8.tar.bz2 android_bootable_recovery-cac3ec3513050b3835e059dd540cfad74a60e1c8.tar.lz android_bootable_recovery-cac3ec3513050b3835e059dd540cfad74a60e1c8.tar.xz android_bootable_recovery-cac3ec3513050b3835e059dd540cfad74a60e1c8.tar.zst android_bootable_recovery-cac3ec3513050b3835e059dd540cfad74a60e1c8.zip |
Diffstat (limited to 'stub_ui.h')
-rw-r--r-- | stub_ui.h | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -54,12 +54,11 @@ class StubRecoveryUI : public RecoveryUI { void ShowFile(const char* /* filename */) override {} // menu display - void StartMenu(const char* const* /* headers */, const char* const* /* items */, - int /* initial_selection */) override {} - int SelectMenu(int sel) override { - return sel; + 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 { + return initial_selection; } - void EndMenu() override {} }; #endif // RECOVERY_STUB_UI_H |