Commit 713e6496 authored by kenan's avatar kenan

Environment

parent 480d4237
......@@ -10,8 +10,6 @@ import android.util.DisplayMetrics;
import android.util.Log;
import android.view.WindowManager;
import com.zlm.libs.preferences.PreferencesProviderUtils;
import org.json.JSONArray;
import java.io.File;
......@@ -471,7 +469,7 @@ public class AppsSettings {
public String getResourcePath() {
String defPath;
try {
defPath = new File(context.getExternalStorageDirectory(), Constants.PREF_DEF_GAME_DIR).getAbsolutePath();
defPath = new File(Environment.getExternalStorageDirectory(), Constants.PREF_DEF_GAME_DIR).getAbsolutePath();
} catch (Exception e) {
defPath = new File(context.getFilesDir(), Constants.PREF_DEF_GAME_DIR).getAbsolutePath();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment