add "files" path

try to fix saving profiles on forcemounted path. Transfer your wagic/res to /Android/data/net.wagic.app/files
This commit is contained in:
Anthony Calosa
2016-06-22 17:00:30 +08:00
committed by GitHub
parent 70165a8c62
commit dc5fc2b544

View File

@@ -214,7 +214,7 @@ public class StorageOptions
{
if(!isRooted())
{
File folder = new File(System.getenv("EXTERNAL_STORAGE")+"/Android/data/net.wagic.app");
File folder = new File(System.getenv("EXTERNAL_STORAGE")+"/Android/data/net.wagic.app/files");
folder.mkdirs();
mMounts.add(folder.toString());
}
@@ -232,7 +232,7 @@ public class StorageOptions
{
if(!isRooted())
{
File folder = new File(System.getenv("SECONDARY_STORAGE")+"/Android/data/net.wagic.app");
File folder = new File(System.getenv("SECONDARY_STORAGE")+"/Android/data/net.wagic.app/files");
folder.mkdirs();
mMounts.add(folder.toString());
}