summaryrefslogtreecommitdiffstats
path: root/recovery.cpp
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2017-01-04 20:31:48 +0100
committerandroid-build-merger <android-build-merger@google.com>2017-01-04 20:31:48 +0100
commit66edafb88fd9ada71b8c9120d10c07e18b3c9c96 (patch)
tree0ff03f99e09e4f02e439512e27cbaffb8ea193e3 /recovery.cpp
parentMerge "Write aliases before ffs mount in recovery" (diff)
parentMerge "recovery: Fix the broken UI text." am: 56fc8fa376 am: 1227f6b841 (diff)
downloadandroid_bootable_recovery-66edafb88fd9ada71b8c9120d10c07e18b3c9c96.tar
android_bootable_recovery-66edafb88fd9ada71b8c9120d10c07e18b3c9c96.tar.gz
android_bootable_recovery-66edafb88fd9ada71b8c9120d10c07e18b3c9c96.tar.bz2
android_bootable_recovery-66edafb88fd9ada71b8c9120d10c07e18b3c9c96.tar.lz
android_bootable_recovery-66edafb88fd9ada71b8c9120d10c07e18b3c9c96.tar.xz
android_bootable_recovery-66edafb88fd9ada71b8c9120d10c07e18b3c9c96.tar.zst
android_bootable_recovery-66edafb88fd9ada71b8c9120d10c07e18b3c9c96.zip
Diffstat (limited to 'recovery.cpp')
-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);