Merge "Rename registerLanguageList to registerLocaleList."
This commit is contained in:
committed by
Android (Google) Code Review
commit
bb96e19b53
@@ -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