|
|
@ -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
|
|
|
|