diff --git a/app/build.gradle b/app/build.gradle index cf72f17..e90fc3c 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -8,8 +8,8 @@ android { applicationId "com.github.axet.audiorecorder" minSdkVersion 16 targetSdkVersion 23 - versionCode 86 - versionName "1.1.64" + versionCode 87 + versionName "1.1.65" } signingConfigs { release { diff --git a/app/src/main/java/com/github/axet/audiorecorder/activities/RecordingActivity.java b/app/src/main/java/com/github/axet/audiorecorder/activities/RecordingActivity.java index da377a3..044c519 100644 --- a/app/src/main/java/com/github/axet/audiorecorder/activities/RecordingActivity.java +++ b/app/src/main/java/com/github/axet/audiorecorder/activities/RecordingActivity.java @@ -768,8 +768,10 @@ public class RecordingActivity extends AppCompatActivity { File parent = targetFile.getParentFile(); - if(!parent.mkdirs()) { // in case if it were manually deleted - throw new RuntimeException("Unable to create: " + parent); + if(!parent.exists()) { + if (!parent.mkdirs()) { // in case if it were manually deleted + throw new RuntimeException("Unable to create: " + parent); + } } EncoderInfo info = getInfo();