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:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user