summaryrefslogtreecommitdiffstats
path: root/stub_ui.h
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2018-04-20 18:24:58 +0200
committerTao Bao <tbao@google.com>2018-05-01 19:27:40 +0200
commit3aec6965bff19ae34ea036c5416c9106c1bd9340 (patch)
tree63fb249d5082614f66f410eaa97405ca504c9083 /stub_ui.h
parentrecovery: Split main() into recovery_main.cpp. (diff)
downloadandroid_bootable_recovery-3aec6965bff19ae34ea036c5416c9106c1bd9340.tar
android_bootable_recovery-3aec6965bff19ae34ea036c5416c9106c1bd9340.tar.gz
android_bootable_recovery-3aec6965bff19ae34ea036c5416c9106c1bd9340.tar.bz2
android_bootable_recovery-3aec6965bff19ae34ea036c5416c9106c1bd9340.tar.lz
android_bootable_recovery-3aec6965bff19ae34ea036c5416c9106c1bd9340.tar.xz
android_bootable_recovery-3aec6965bff19ae34ea036c5416c9106c1bd9340.tar.zst
android_bootable_recovery-3aec6965bff19ae34ea036c5416c9106c1bd9340.zip
Diffstat (limited to 'stub_ui.h')
-rw-r--r--stub_ui.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/stub_ui.h b/stub_ui.h
index 1f6b29acb..3c36fcfb1 100644
--- a/stub_ui.h
+++ b/stub_ui.h
@@ -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