summaryrefslogtreecommitdiffstats
path: root/stub_ui.h
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2018-05-01 22:32:37 +0200
committerGerrit Code Review <noreply-gerritcodereview@google.com>2018-05-01 22:32:37 +0200
commitcac3ec3513050b3835e059dd540cfad74a60e1c8 (patch)
tree03eda9404b106cff6d8186940355c7b957ec0ea2 /stub_ui.h
parentMerge "updater_sample: add FileDownloader" (diff)
parentAdd ScreenRecoveryUI::ShowMenu(). (diff)
downloadandroid_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.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