[android] Fixed sometimes non-working getExternalFilesDirs on KitKat.

This commit is contained in:
Alex Zolotarev 2014-08-26 19:33:23 +03:00 committed by Alex Zolotarev
parent 6a100663c8
commit bb45c37e9e

View file

@ -134,12 +134,16 @@ public class StoragePathManager
{
// add only secondary dirs
if (f != null && !f.equals(primaryStorageDir))
{
Log.i(TAG, "Additional storage path: " + f.getPath());
paths.add(f.getPath());
}
}
}
}
else
parseMountFiles(paths);
// Do it even on KitKat due to some bugs with getExternalFilesDirs()
parseMountFiles(paths);
Map<Long, String> pathsSizesMap = new HashMap<Long, String>();