cleanups expcetions
This commit is contained in:
parent
1c95d7db12
commit
16e61c92f5
2 changed files with 3 additions and 3 deletions
|
|
@ -416,10 +416,10 @@ public class RecordingActivity extends AppCompatThemeActivity {
|
|||
recording.e.close();
|
||||
recording.e = null;
|
||||
}
|
||||
Storage.delete(RecordingActivity.this, recording.targetUri);
|
||||
} catch (RuntimeException | IOException e) {
|
||||
} catch (RuntimeException e) {
|
||||
Error(e);
|
||||
}
|
||||
Storage.delete(RecordingActivity.this, recording.targetUri);
|
||||
}
|
||||
Storage.delete(recording.storage.getTempRecording());
|
||||
finish();
|
||||
|
|
|
|||
|
|
@ -209,7 +209,7 @@ public class EncodingStorage extends HashMap<File, EncodingStorage.Info> {
|
|||
.putExtra("info", info.save().toString())
|
||||
.putExtra("e", encoder.getException());
|
||||
Post(ERROR, intent);
|
||||
} catch (JSONException | IOException e) {
|
||||
} catch (JSONException e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue