summaryrefslogtreecommitdiffstats
path: root/recovery.cpp
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2017-08-16 07:02:05 +0200
committerGerrit Code Review <noreply-gerritcodereview@google.com>2017-08-16 07:02:05 +0200
commit162b92323bdcb13baf619450d994f5045f1ee195 (patch)
tree62656a73a7ef12dce8e7c83a825cb6a267495278 /recovery.cpp
parentMerge "Add a new PatchChunk class in imgdiff" (diff)
parentscreen_ui: Word-wrap menu headers. (diff)
downloadandroid_bootable_recovery-162b92323bdcb13baf619450d994f5045f1ee195.tar
android_bootable_recovery-162b92323bdcb13baf619450d994f5045f1ee195.tar.gz
android_bootable_recovery-162b92323bdcb13baf619450d994f5045f1ee195.tar.bz2
android_bootable_recovery-162b92323bdcb13baf619450d994f5045f1ee195.tar.lz
android_bootable_recovery-162b92323bdcb13baf619450d994f5045f1ee195.tar.xz
android_bootable_recovery-162b92323bdcb13baf619450d994f5045f1ee195.tar.zst
android_bootable_recovery-162b92323bdcb13baf619450d994f5045f1ee195.zip
Diffstat (limited to 'recovery.cpp')
-rw-r--r--recovery.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/recovery.cpp b/recovery.cpp
index 233e56246..c5ead451a 100644
--- a/recovery.cpp
+++ b/recovery.cpp
@@ -757,12 +757,13 @@ static bool wipe_data(Device* device) {
}
static bool prompt_and_wipe_data(Device* device) {
+ // Use a single string and let ScreenRecoveryUI handles the wrapping.
const char* const headers[] = {
- "Can't load Android system. Your data may be corrupt.",
- "If you continue to get this message, you may need to",
- "perform a factory data reset and erase all user data",
+ "Can't load Android system. Your data may be corrupt. "
+ "If you continue to get this message, you may need to "
+ "perform a factory data reset and erase all user data "
"stored on this device.",
- NULL
+ nullptr
};
const char* const items[] = {
"Try again",