From 6fa2e34c7f72a0d0809741834e50da5df0eae0e6 Mon Sep 17 00:00:00 2001 From: "Reece H. Dunn" Date: Thu, 30 Oct 2014 15:42:19 +0000 Subject: [PATCH] Revert "DownloadVoiceData: check the mkdir return value" This reverts commit 6ac54860a1e629c01e0a8b3a3d317d31d61ece70. This change was preventing the voice data from being installed. --- android/src/com/reecedunn/espeak/DownloadVoiceData.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/android/src/com/reecedunn/espeak/DownloadVoiceData.java b/android/src/com/reecedunn/espeak/DownloadVoiceData.java index faf73ffd..b51c0966 100755 --- a/android/src/com/reecedunn/espeak/DownloadVoiceData.java +++ b/android/src/com/reecedunn/espeak/DownloadVoiceData.java @@ -133,15 +133,13 @@ public class DownloadVoiceData extends Activity { mExtractedFiles.add(outputFile); if (entry.isDirectory()) { - if (outputFile.mkdirs()) { - FileUtils.chmod(outputFile); - } + outputFile.mkdirs(); + FileUtils.chmod(outputFile); continue; } // Ensure the target path exists. - if (!outputFile.getParentFile().mkdirs()) - continue; + outputFile.getParentFile().mkdirs(); final FileOutputStream outputStream = new FileOutputStream(outputFile); try {