Merge branch 'audiorecorder-3.0.51'

This commit is contained in:
Alexey Kuznetsov 2017-11-06 11:57:54 +03:00
commit 441407d15b
2 changed files with 9 additions and 4 deletions

View file

@ -10,8 +10,8 @@ android {
applicationId "com.github.axet.audiorecorder"
minSdkVersion 9
targetSdkVersion 24 // 25+ file:// unable to open
versionCode 216
versionName "3.0.50"
versionCode 217
versionName "3.0.51"
}
signingConfigs {
release {
@ -55,5 +55,5 @@ android {
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.github.axet:android-audio-library:1.0.52' // compile project(':android-audio-library')
compile 'com.github.axet:android-audio-library:1.0.53' // compile project(':android-audio-library')
}

View file

@ -461,7 +461,12 @@ public class RecordingActivity extends AppCompatActivity {
}
void setState(String s) {
long free = Storage.getFree(storage.getTempRecording());
long free = 0;
try {
free = Storage.getFree(storage.getTempRecording());
} catch (RuntimeException e) { // IllegalArgumentException
}
final SharedPreferences shared = PreferenceManager.getDefaultSharedPreferences(this);