Rename registerLanguageList to registerLocaleList.

The minikin's public method FontStyle::registerLanguageList 
is now FontStyle::registerLocaleList.

Bug: 65024629
Test: make checkbuild
Change-Id: Ia42ea8c56972d2f1f9d4429af4b04e7a4eba1a60
This commit is contained in:
Seigo Nonaka
2017-10-19 18:57:47 -07:00
parent 27df643cc2
commit 92374482d2
2 changed files with 3 additions and 3 deletions

View File

@@ -56,9 +56,9 @@ static jlong FontFamily_initBuilder(JNIEnv* env, jobject clazz, jstring langs, j
if (langs != nullptr) {
ScopedUtfChars str(env, langs);
builder = new NativeFamilyBuilder(
minikin::FontStyle::registerLanguageList(str.c_str()), variant);
minikin::FontStyle::registerLocaleList(str.c_str()), variant);
} else {
builder = new NativeFamilyBuilder(minikin::FontStyle::registerLanguageList(""), variant);
builder = new NativeFamilyBuilder(minikin::FontStyle::registerLocaleList(""), variant);
}
return reinterpret_cast<jlong>(builder);
}

View File

@@ -544,7 +544,7 @@ namespace PaintGlue {
static jint setTextLocales(JNIEnv* env, jobject clazz, jlong objHandle, jstring locales) {
Paint* obj = reinterpret_cast<Paint*>(objHandle);
ScopedUtfChars localesChars(env, locales);
jint minikinLangListId = minikin::FontStyle::registerLanguageList(localesChars.c_str());
jint minikinLangListId = minikin::FontStyle::registerLocaleList(localesChars.c_str());
obj->setMinikinLangListId(minikinLangListId);
return minikinLangListId;
}