fix free crash

This commit is contained in:
Alexey Kuznetsov 2017-11-06 11:53:01 +03:00
commit ae696e61b3

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