From 54a8c79222bba0644b02fe1dbc5d75e26ea50b5d Mon Sep 17 00:00:00 2001 From: mac <user@users-MacBook-Pro.local> Date: 星期二, 14 十一月 2023 18:17:58 +0800 Subject: [PATCH] 2023年11月14日18:17:48 --- app/src/main/java/com/hdl/photovoltaic/other/HdlFileLogic.java | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/src/main/java/com/hdl/photovoltaic/other/HdlFileLogic.java b/app/src/main/java/com/hdl/photovoltaic/other/HdlFileLogic.java index b0b7b8f..fb26833 100644 --- a/app/src/main/java/com/hdl/photovoltaic/other/HdlFileLogic.java +++ b/app/src/main/java/com/hdl/photovoltaic/other/HdlFileLogic.java @@ -25,7 +25,7 @@ private static volatile HdlFileLogic sHdlFileLogic; /** - * 琛ㄧず1m鏁版嵁 + * 琛ㄧず1m澶у皬鏁版嵁 */ private final int m = 1; @@ -61,32 +61,32 @@ * 鑾峰彇鎵嬫満鍐呴儴瀛樺偍鏂囦欢璺緞 */ public String getAPPInternalStoreFilesPath() { - return HDLApp.getInstance().getExternalFilesDir(Environment.DIRECTORY_DOCUMENTS).getPath(); + return Objects.requireNonNull(HDLApp.getInstance().getExternalFilesDir(Environment.DIRECTORY_DOCUMENTS)).getPath(); } /** - * 鑾峰彇瀛樻斁銆愮敤鎴枫�戞枃浠跺す鏍硅矾寰� + * 鑾峰彇瀛樻斁銆愮敤鎴锋枃浠跺す銆戞牴璺緞 */ public String getCurrentUserRootPath() { return getAPPInternalStoreFilesPath() + "/" + getUserId(); } /** - * 鑾峰彇瀛樻斁銆愪綇瀹呫�戞枃浠跺す鏍硅矾寰� + * 鑾峰彇瀛樻斁銆愪綇瀹呮枃浠跺す銆戞牴璺緞 */ public String getCurrentHomeRootPath() { return getCurrentUserRootPath() + "/" + "home_" + getHomeId(); } /** - * 鑾峰彇銆愭棩蹇椼�戞枃浠跺叏璺緞 + * 鑾峰彇銆愭棩蹇楁枃浠躲�戝叏璺緞 */ public String getLogFilePath() { return getCurrentHomeRootPath() + "/Log.txt"; } /** - * 鑾峰彇銆愮敤鎴枫�戞枃浠跺叏璺緞 + * 鑾峰彇銆愮敤鎴锋枃浠躲�戝叏璺緞 */ public String getUserFilePath() { return getAPPInternalStoreFilesPath() + "/UserConfigManage.txt"; -- Gitblit v1.8.0