summaryrefslogtreecommitdiffstats
path: root/minui/resources.cpp
diff options
context:
space:
mode:
authorTreehugger Robot <treehugger-gerrit@google.com>2017-12-21 03:11:08 +0100
committerGerrit Code Review <noreply-gerritcodereview@google.com>2017-12-21 03:11:08 +0100
commit80ccac2fffc09ef0b8a1fe43c096788e12359a1d (patch)
tree576ea15da50d8081d937a15b194b675f0f221057 /minui/resources.cpp
parentMerge "Let update_verifier work on non-AB update devices" (diff)
parentStartsWith allows a std::string prefix now. (diff)
downloadandroid_bootable_recovery-80ccac2fffc09ef0b8a1fe43c096788e12359a1d.tar
android_bootable_recovery-80ccac2fffc09ef0b8a1fe43c096788e12359a1d.tar.gz
android_bootable_recovery-80ccac2fffc09ef0b8a1fe43c096788e12359a1d.tar.bz2
android_bootable_recovery-80ccac2fffc09ef0b8a1fe43c096788e12359a1d.tar.lz
android_bootable_recovery-80ccac2fffc09ef0b8a1fe43c096788e12359a1d.tar.xz
android_bootable_recovery-80ccac2fffc09ef0b8a1fe43c096788e12359a1d.tar.zst
android_bootable_recovery-80ccac2fffc09ef0b8a1fe43c096788e12359a1d.zip
Diffstat (limited to '')
-rw-r--r--minui/resources.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/minui/resources.cpp b/minui/resources.cpp
index 837f5ebca..52ab60b1b 100644
--- a/minui/resources.cpp
+++ b/minui/resources.cpp
@@ -397,7 +397,7 @@ bool matches_locale(const std::string& prefix, const std::string& locale) {
// match the locale string without the {script} section.
// For instance, prefix == "en" matches locale == "en-US", prefix == "sr-Latn" matches locale
// == "sr-Latn-BA", and prefix == "zh-CN" matches locale == "zh-Hans-CN".
- if (android::base::StartsWith(locale, prefix.c_str())) {
+ if (android::base::StartsWith(locale, prefix)) {
return true;
}