forked from organicmaps/organicmaps
[android] Fixed sometimes non-working getExternalFilesDirs on KitKat.
This commit is contained in:
parent
6a100663c8
commit
bb45c37e9e
1 changed files with 6 additions and 2 deletions
|
@ -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>();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue