fix bug with mkdir
git-svn-id: https://osmand.googlecode.com/svn/trunk@40 e29c36b1-1cfa-d876-8d93-3434fc2bb7b8
This commit is contained in:
parent
00a5d78f59
commit
eb744a6e34
1 changed files with 4 additions and 0 deletions
|
@ -70,6 +70,10 @@ public class ResourceManager {
|
||||||
// TODO start/stop this thread when needed?
|
// TODO start/stop this thread when needed?
|
||||||
asyncLoadingTiles.start();
|
asyncLoadingTiles.start();
|
||||||
dirWithTiles = new File(Environment.getExternalStorageDirectory(), TILES_PATH);
|
dirWithTiles = new File(Environment.getExternalStorageDirectory(), TILES_PATH);
|
||||||
|
if(Environment.getExternalStorageDirectory().canRead()){
|
||||||
|
dirWithTiles.mkdirs();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Working with tiles ///
|
/// Working with tiles ///
|
||||||
|
|
Loading…
Reference in a new issue