fix a crash in ComposeActivity where a dialog was canceled that was already removed from the window

main
Conny Duck 7 years ago
parent cece619ff5
commit 9b4bc63fab
  1. 2
      app/src/main/java/com/keylesspalace/tusky/ComposeActivity.java

@ -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…
Cancel
Save