Crash fix

This commit is contained in:
Grishka 2024-06-14 16:43:26 +03:00
parent c5197975c5
commit 264f9a933c
2 changed files with 3 additions and 2 deletions

View File

@ -13,7 +13,7 @@ android {
applicationId "org.joinmastodon.android"
minSdk 23
targetSdk 33
versionCode 99
versionCode 100
versionName "2.5.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}

View File

@ -173,7 +173,7 @@ public class ComposeFragment extends MastodonToolbarFragment implements ComposeE
private ForegroundColorSpan overLimitFG;
private Runnable emojiKeyboardHider;
private Runnable sendingBackButtonBlocker;
private Runnable sendingBackButtonBlocker=()->{};
private Runnable discardConfirmationCallback=this::confirmDiscardDraftAndFinish;
private boolean prevHadDraft;
@ -750,6 +750,7 @@ public class ComposeFragment extends MastodonToolbarFragment implements ComposeE
wm.removeView(sendingOverlay);
sendingOverlay=null;
removeBackCallback(sendingBackButtonBlocker);
removeBackCallback(discardConfirmationCallback);
if(editingStatus==null){
E.post(new StatusCreatedEvent(result, accountID));
if(replyTo!=null){