修复运维修改配置文件的bug

lowmem
Matthew 1 month ago
parent 5e869d0f92
commit 7e23d09814

@ -2,6 +2,7 @@ package com.xypower.common;
import android.content.Context; import android.content.Context;
import android.os.Environment; import android.os.Environment;
import android.text.TextUtils;
import org.json.JSONArray; import org.json.JSONArray;
import org.json.JSONException; import org.json.JSONException;
@ -132,7 +133,7 @@ public class JSONUtils {
return false; return false;
} }
File configFile = new File(Environment.getExternalStorageDirectory(), path); File configFile = new File(path.trim());
if (!configFile.exists()) { if (!configFile.exists()) {
if (val == null) { if (val == null) {
// Should delete the config field // Should delete the config field

Loading…
Cancel
Save