summaryrefslogtreecommitdiffstats
path: root/recovery.cpp
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2017-01-04 20:27:17 +0100
committerandroid-build-merger <android-build-merger@google.com>2017-01-04 20:27:17 +0100
commit74e0ecb25bda6a1c01355d22e3e20bdb3226f3ea (patch)
tree2993d4b32a868c0c7d45fc293508f8a25de11b56 /recovery.cpp
parentMerge "updater: Refactor parse_range()." am: 466e1b396a am: 6502c50e4b (diff)
parentMerge "recovery: Fix the broken UI text." am: 56fc8fa376 (diff)
downloadandroid_bootable_recovery-74e0ecb25bda6a1c01355d22e3e20bdb3226f3ea.tar
android_bootable_recovery-74e0ecb25bda6a1c01355d22e3e20bdb3226f3ea.tar.gz
android_bootable_recovery-74e0ecb25bda6a1c01355d22e3e20bdb3226f3ea.tar.bz2
android_bootable_recovery-74e0ecb25bda6a1c01355d22e3e20bdb3226f3ea.tar.lz
android_bootable_recovery-74e0ecb25bda6a1c01355d22e3e20bdb3226f3ea.tar.xz
android_bootable_recovery-74e0ecb25bda6a1c01355d22e3e20bdb3226f3ea.tar.zst
android_bootable_recovery-74e0ecb25bda6a1c01355d22e3e20bdb3226f3ea.zip
Diffstat (limited to '')
-rw-r--r--recovery.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/recovery.cpp b/recovery.cpp
index b7aeaee1f..5888c542a 100644
--- a/recovery.cpp
+++ b/recovery.cpp
@@ -1506,11 +1506,10 @@ int main(int argc, char **argv) {
Device* device = make_device();
ui = device->GetUI();
- if (!ui->Init()) {
+ if (!ui->Init(locale)) {
printf("Failed to initialize UI, use stub UI instead.");
ui = new StubRecoveryUI();
}
- ui->SetLocale(locale.c_str());
// Set background string to "installing security update" for security update,
// otherwise set it to "installing system update".
ui->SetSystemUpdateText(security_update);