Fix NullPointerException in UpdatableFontDir.
The localeList param is @NonNull in FontConfig.FontFamily ctor. Bug: 186891684 Test: manual Change-Id: Ida60723e577f225e63f86dc48e9719c0d725412f
This commit is contained in:
@@ -24,6 +24,7 @@ import android.graphics.fonts.FontManager;
|
||||
import android.graphics.fonts.FontUpdateRequest;
|
||||
import android.graphics.fonts.SystemFonts;
|
||||
import android.os.FileUtils;
|
||||
import android.os.LocaleList;
|
||||
import android.system.ErrnoException;
|
||||
import android.system.Os;
|
||||
import android.text.FontConfig;
|
||||
@@ -530,7 +531,7 @@ final class UpdatableFontDir {
|
||||
font.getFontStyle(), font.getIndex(), font.getFontVariationSettings(), null));
|
||||
}
|
||||
return new FontConfig.FontFamily(resolvedFonts, fontFamily.getName(),
|
||||
null, FontConfig.FontFamily.VARIANT_DEFAULT);
|
||||
LocaleList.getEmptyLocaleList(), FontConfig.FontFamily.VARIANT_DEFAULT);
|
||||
}
|
||||
|
||||
Map<String, File> getPostScriptMap() {
|
||||
|
||||
Reference in New Issue
Block a user