From 2bac5352e84b450cd3e2b3f4163716f291427957 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E5=B0=9A=E6=98=86?= Date: Thu, 3 Mar 2022 17:10:24 +0800 Subject: [PATCH] remove TextUtils.isEmpty(fileName) --- .../doric/src/main/java/pub/doric/shader/TextNode.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/doric-android/doric/src/main/java/pub/doric/shader/TextNode.java b/doric-android/doric/src/main/java/pub/doric/shader/TextNode.java index d78b669e..4f008cf3 100644 --- a/doric-android/doric/src/main/java/pub/doric/shader/TextNode.java +++ b/doric-android/doric/src/main/java/pub/doric/shader/TextNode.java @@ -268,9 +268,6 @@ public class TextNode extends ViewNode { String filePath; filePath = getContext().getCacheDir().getPath() + File.separator + "DoricTextFonts"; String fileName = URLEncoder.encode(type + "_" + identifier, "UTF-8"); - if (TextUtils.isEmpty(fileName)) { - fileName = (identifier == null) ? "tempFont.ttf" : identifier; - } File file = createFile(fontData, filePath, fileName); if (file == null) { DoricLog.e("Error Font file load resource %s", resource.toString());