Merge branch 'audiorecorder-1.1.65'

This commit is contained in:
Alexey Kuznetsov 2016-10-08 15:11:57 +03:00
commit 4546bfe05e
2 changed files with 6 additions and 4 deletions

View file

@ -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 {

View file

@ -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();