summaryrefslogtreecommitdiff
path: root/recovery_main.cpp
diff options
context:
space:
mode:
authorxunchang <xunchang@google.com>2019-04-16 12:07:42 -0700
committerxunchang <xunchang@google.com>2019-04-22 14:39:51 -0700
commit9d05c8a35776444f6e967f8a4ac5863a31e54cf6 (patch)
tree3bea493d37159d462e27802aae147a425c9810ed /recovery_main.cpp
parentb951138ebe56a3b0a10764d5629479adfe3a3689 (diff)
Fall back to en-US if localized bitmap is missing for a locale
We used to show the image for the last locale or an empty image, if the localized image is missing for a specific locale. As the default english one is more meaningful to users, we should just error out and fall back to use the default locale when the image loading fails. Bug: 128934634 Test: run graphic test, locale test Change-Id: Iafd3e8466aec63b4952d1959b2a3d37e358677d4
Diffstat (limited to 'recovery_main.cpp')
-rw-r--r--recovery_main.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/recovery_main.cpp b/recovery_main.cpp
index 38e1db73..37d9da0d 100644
--- a/recovery_main.cpp
+++ b/recovery_main.cpp
@@ -373,7 +373,6 @@ int main(int argc, char** argv) {
}
if (locale.empty()) {
- static constexpr const char* DEFAULT_LOCALE = "en-US";
locale = DEFAULT_LOCALE;
}
}