From 79b260ff64efb57e76502f42a42a0b997935d605 Mon Sep 17 00:00:00 2001 From: Alexey Kuznetsov Date: Sat, 8 Oct 2016 15:11:50 +0300 Subject: [PATCH 1/2] fix deleted folder --- .../axet/audiorecorder/activities/RecordingActivity.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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(); From 04185ab9f28dff85f9d486acf9eb0250c5f9e6ef Mon Sep 17 00:00:00 2001 From: Alexey Kuznetsov Date: Sat, 8 Oct 2016 15:11:57 +0300 Subject: [PATCH 2/2] Bump version audiorecorder-1.1.65 --- app/build.gradle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 {