summaryrefslogtreecommitdiffstats
path: root/ui.h
diff options
context:
space:
mode:
authorTianjie Xu <xunchang@google.com>2018-10-17 00:13:09 +0200
committerTianjie Xu <xunchang@google.com>2018-10-23 00:27:33 +0200
commitb99e6069c1b0749a4811c4d222c5009cbad1edc8 (patch)
tree2f292bb636b67baf932f9e6b08972fc14ad4c66c /ui.h
parentMerge "Fix instrumentation_for to refer to name of module" (diff)
downloadandroid_bootable_recovery-b99e6069c1b0749a4811c4d222c5009cbad1edc8.tar
android_bootable_recovery-b99e6069c1b0749a4811c4d222c5009cbad1edc8.tar.gz
android_bootable_recovery-b99e6069c1b0749a4811c4d222c5009cbad1edc8.tar.bz2
android_bootable_recovery-b99e6069c1b0749a4811c4d222c5009cbad1edc8.tar.lz
android_bootable_recovery-b99e6069c1b0749a4811c4d222c5009cbad1edc8.tar.xz
android_bootable_recovery-b99e6069c1b0749a4811c4d222c5009cbad1edc8.tar.zst
android_bootable_recovery-b99e6069c1b0749a4811c4d222c5009cbad1edc8.zip
Diffstat (limited to 'ui.h')
-rw-r--r--ui.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/ui.h b/ui.h
index e0fb13e40..1e6186a11 100644
--- a/ui.h
+++ b/ui.h
@@ -162,6 +162,13 @@ class RecoveryUI {
const std::vector<std::string>& items, size_t initial_selection,
bool menu_only, const std::function<int(int, bool)>& key_handler) = 0;
+ // Displays the localized wipe data menu with pre-generated graphs. If there's an issue
+ // with the graphs, falls back to use the backup string headers and items instead. The initial
+ // selection is the 0th item in the menu, which is expected to reboot the device without a wipe.
+ virtual size_t ShowPromptWipeDataMenu(const std::vector<std::string>& backup_headers,
+ const std::vector<std::string>& backup_items,
+ const std::function<int(int, bool)>& key_handler) = 0;
+
// Resets the key interrupt status.
void ResetKeyInterruptStatus() {
key_interrupted_ = false;