remove TextUtils.isEmpty(fileName)

This commit is contained in:
吴尚昆 2022-03-03 17:10:24 +08:00 committed by osborn
parent af9b47466c
commit 2bac5352e8

View File

@ -268,9 +268,6 @@ public class TextNode extends ViewNode<TextView> {
String filePath; String filePath;
filePath = getContext().getCacheDir().getPath() + File.separator + "DoricTextFonts"; filePath = getContext().getCacheDir().getPath() + File.separator + "DoricTextFonts";
String fileName = URLEncoder.encode(type + "_" + identifier, "UTF-8"); String fileName = URLEncoder.encode(type + "_" + identifier, "UTF-8");
if (TextUtils.isEmpty(fileName)) {
fileName = (identifier == null) ? "tempFont.ttf" : identifier;
}
File file = createFile(fontData, filePath, fileName); File file = createFile(fontData, filePath, fileName);
if (file == null) { if (file == null) {
DoricLog.e("Error Font file load resource %s", resource.toString()); DoricLog.e("Error Font file load resource %s", resource.toString());