diff options
author | Tao Bao <tbao@google.com> | 2017-01-04 20:22:48 +0100 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2017-01-04 20:22:48 +0100 |
commit | 3806993e2532704d6569b67352fce9c42650fd74 (patch) | |
tree | 2993d4b32a868c0c7d45fc293508f8a25de11b56 /recovery.cpp | |
parent | Merge "updater: Refactor parse_range()." am: 466e1b396a (diff) | |
parent | Merge "recovery: Fix the broken UI text." (diff) | |
download | android_bootable_recovery-3806993e2532704d6569b67352fce9c42650fd74.tar android_bootable_recovery-3806993e2532704d6569b67352fce9c42650fd74.tar.gz android_bootable_recovery-3806993e2532704d6569b67352fce9c42650fd74.tar.bz2 android_bootable_recovery-3806993e2532704d6569b67352fce9c42650fd74.tar.lz android_bootable_recovery-3806993e2532704d6569b67352fce9c42650fd74.tar.xz android_bootable_recovery-3806993e2532704d6569b67352fce9c42650fd74.tar.zst android_bootable_recovery-3806993e2532704d6569b67352fce9c42650fd74.zip |
Diffstat (limited to '')
-rw-r--r-- | recovery.cpp | 3 |
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); |