fix a crash in ComposeActivity where a dialog was canceled that was already removed from the window
This commit is contained in:
parent
26834b36ed
commit
a2c361914b
1 changed files with 1 additions and 1 deletions
|
@ -1407,7 +1407,7 @@ public final class ComposeActivity extends BaseActivity implements ComposeOption
|
|||
* it from the queue, then don't display this error message. */
|
||||
displayTransientError(R.string.error_media_upload_sending);
|
||||
}
|
||||
if (finishingUploadDialog != null) {
|
||||
if (finishingUploadDialog != null && finishingUploadDialog.isShowing()) {
|
||||
finishingUploadDialog.cancel();
|
||||
}
|
||||
if (!isCanceled) {
|
||||
|
|
Loading…
Reference in a new issue