diff options
author | Tao Bao <tbao@google.com> | 2017-01-04 20:11:23 +0100 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2017-01-04 20:11:24 +0100 |
commit | 56fc8fa376cb65a499fb38deaccf8b4f6076b034 (patch) | |
tree | d681555270b43c08d360207b0acb98829554e864 /recovery.cpp | |
parent | Merge "updater: Refactor parse_range()." (diff) | |
parent | recovery: Fix the broken UI text. (diff) | |
download | android_bootable_recovery-56fc8fa376cb65a499fb38deaccf8b4f6076b034.tar android_bootable_recovery-56fc8fa376cb65a499fb38deaccf8b4f6076b034.tar.gz android_bootable_recovery-56fc8fa376cb65a499fb38deaccf8b4f6076b034.tar.bz2 android_bootable_recovery-56fc8fa376cb65a499fb38deaccf8b4f6076b034.tar.lz android_bootable_recovery-56fc8fa376cb65a499fb38deaccf8b4f6076b034.tar.xz android_bootable_recovery-56fc8fa376cb65a499fb38deaccf8b4f6076b034.tar.zst android_bootable_recovery-56fc8fa376cb65a499fb38deaccf8b4f6076b034.zip |
Diffstat (limited to 'recovery.cpp')
-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); |