diff options
author | Elliott Hughes <enh@google.com> | 2017-12-21 10:34:32 +0100 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2017-12-21 10:34:32 +0100 |
commit | 92be1378f9998ab108e2c4f8de6d53d3481f7586 (patch) | |
tree | dcfd608f2640dc9ee36abf25c948a58a0ea22459 /minui/resources.cpp | |
parent | Merge "Let update_verifier work on non-AB update devices" am: 3fe230a1e4 (diff) | |
parent | Merge "StartsWith allows a std::string prefix now." (diff) | |
download | android_bootable_recovery-92be1378f9998ab108e2c4f8de6d53d3481f7586.tar android_bootable_recovery-92be1378f9998ab108e2c4f8de6d53d3481f7586.tar.gz android_bootable_recovery-92be1378f9998ab108e2c4f8de6d53d3481f7586.tar.bz2 android_bootable_recovery-92be1378f9998ab108e2c4f8de6d53d3481f7586.tar.lz android_bootable_recovery-92be1378f9998ab108e2c4f8de6d53d3481f7586.tar.xz android_bootable_recovery-92be1378f9998ab108e2c4f8de6d53d3481f7586.tar.zst android_bootable_recovery-92be1378f9998ab108e2c4f8de6d53d3481f7586.zip |
Diffstat (limited to 'minui/resources.cpp')
-rw-r--r-- | minui/resources.cpp | 2 |
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; } |