mirror of
https://github.com/deltachat/deltachat-android.git
synced 2025-10-06 03:49:58 +02:00
avoid IllegalArgumentException dismissing dialog
This commit is contained in:
parent
d9db4b818a
commit
6916becf7f
1 changed files with 7 additions and 1 deletions
|
@ -1084,7 +1084,13 @@ public class ConversationActivity extends PassphraseRequiredActionBarActivity
|
|||
);
|
||||
});
|
||||
doSend = VideoRecoder.prepareVideo(ConversationActivity.this, dcChat.getId(), msg);
|
||||
Util.runOnMain(() -> progressDialog.dismiss());
|
||||
Util.runOnMain(() -> {
|
||||
try {
|
||||
progressDialog.dismiss();
|
||||
} catch (final IllegalArgumentException e) {
|
||||
// The activity is finishing/destroyed, do nothing.
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
if (doSend) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue