summaryrefslogtreecommitdiffstats
path: root/screen_ui.h
diff options
context:
space:
mode:
authorandroid-build-team Robot <android-build-team-robot@google.com>2018-12-12 05:11:42 +0100
committerandroid-build-team Robot <android-build-team-robot@google.com>2018-12-12 05:11:42 +0100
commitabaf71d3abd12f4bceb1d525a5732f8a2b50aabf (patch)
treeb4c41b378f11d46e64248a4157f087bb87e82d1e /screen_ui.h
parentSnap for 5171533 from a96d2db281c4326a8a4017261286a6ba5cdd07e3 to qt-release (diff)
parentMerge "Show wipe data confirmation text in recovery mode" am: c456aab7e2 am: 608acc9ca2 (diff)
downloadandroid_bootable_recovery-abaf71d3abd12f4bceb1d525a5732f8a2b50aabf.tar
android_bootable_recovery-abaf71d3abd12f4bceb1d525a5732f8a2b50aabf.tar.gz
android_bootable_recovery-abaf71d3abd12f4bceb1d525a5732f8a2b50aabf.tar.bz2
android_bootable_recovery-abaf71d3abd12f4bceb1d525a5732f8a2b50aabf.tar.lz
android_bootable_recovery-abaf71d3abd12f4bceb1d525a5732f8a2b50aabf.tar.xz
android_bootable_recovery-abaf71d3abd12f4bceb1d525a5732f8a2b50aabf.tar.zst
android_bootable_recovery-abaf71d3abd12f4bceb1d525a5732f8a2b50aabf.zip
Diffstat (limited to 'screen_ui.h')
-rw-r--r--screen_ui.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/screen_ui.h b/screen_ui.h
index ff245a2fb..acd44c819 100644
--- a/screen_ui.h
+++ b/screen_ui.h
@@ -240,6 +240,11 @@ class ScreenRecoveryUI : public RecoveryUI, public DrawInterface {
const std::vector<std::string>& backup_items,
const std::function<int(int, bool)>& key_handler) override;
+ // Displays the localized wipe data confirmation menu.
+ size_t ShowPromptWipeDataConfirmationMenu(
+ const std::vector<std::string>& backup_headers, const std::vector<std::string>& backup_items,
+ const std::function<int(int, bool)>& key_handler) override;
+
protected:
static constexpr int kMenuIndent = 4;
@@ -334,9 +339,11 @@ class ScreenRecoveryUI : public RecoveryUI, public DrawInterface {
std::unique_ptr<GRSurface> no_command_text_;
// Localized text images for the wipe data menu.
- std::unique_ptr<GRSurface> wipe_data_menu_header_text_;
- std::unique_ptr<GRSurface> try_again_text_;
+ std::unique_ptr<GRSurface> cancel_wipe_data_text_;
std::unique_ptr<GRSurface> factory_data_reset_text_;
+ std::unique_ptr<GRSurface> try_again_text_;
+ std::unique_ptr<GRSurface> wipe_data_confirmation_text_;
+ std::unique_ptr<GRSurface> wipe_data_menu_header_text_;
// current_icon_ points to one of the frames in intro_frames_ or loop_frames_, indexed by
// current_frame_, or error_icon_.