android: fix finding cache dir on prefroyo devices, it now creates the Hedgewars folder if it wasn't there
authorXeli
Tue, 28 Feb 2012 22:00:33 +0100
changeset 6751 7c75941b499b
parent 6750 5eb087708fbd
child 6752 11d898afe582
android: fix finding cache dir on prefroyo devices, it now creates the Hedgewars folder if it wasn't there
project_files/Android-build/SDL-android-project/src/org/hedgewars/hedgeroid/Downloader/DownloadAsyncTask.java
--- a/project_files/Android-build/SDL-android-project/src/org/hedgewars/hedgeroid/Downloader/DownloadAsyncTask.java	Tue Feb 28 09:40:48 2012 -0500
+++ b/project_files/Android-build/SDL-android-project/src/org/hedgewars/hedgeroid/Downloader/DownloadAsyncTask.java	Tue Feb 28 22:00:33 2012 +0100
@@ -73,7 +73,7 @@
 		String rootZipDest = pack.getPathToStore();
 
 		File rootDest = new File(rootZipDest);//TODO check for nullpointer, it hints to the absence of an sdcard
-		rootDest.mkdir();
+		rootDest.mkdirs();
 
 		try {
 			URL url = new URL(pack.getURL() + URL_ZIP_SUFFIX);