summaryrefslogtreecommitdiffstats
path: root/recovery.cpp
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2017-01-04 20:17:47 +0100
committerandroid-build-merger <android-build-merger@google.com>2017-01-04 20:17:47 +0100
commit1227f6b841a52aba4032951af389ab4df197d95e (patch)
treed681555270b43c08d360207b0acb98829554e864 /recovery.cpp
parentMerge "updater: Refactor parse_range()." (diff)
parentMerge "recovery: Fix the broken UI text." (diff)
downloadandroid_bootable_recovery-1227f6b841a52aba4032951af389ab4df197d95e.tar
android_bootable_recovery-1227f6b841a52aba4032951af389ab4df197d95e.tar.gz
android_bootable_recovery-1227f6b841a52aba4032951af389ab4df197d95e.tar.bz2
android_bootable_recovery-1227f6b841a52aba4032951af389ab4df197d95e.tar.lz
android_bootable_recovery-1227f6b841a52aba4032951af389ab4df197d95e.tar.xz
android_bootable_recovery-1227f6b841a52aba4032951af389ab4df197d95e.tar.zst
android_bootable_recovery-1227f6b841a52aba4032951af389ab4df197d95e.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);