mirror of
https://github.com/mastodon/mastodon-android.git
synced 2024-12-23 07:26:46 +01:00
Crash fix
This commit is contained in:
parent
c5197975c5
commit
264f9a933c
@ -13,7 +13,7 @@ android {
|
|||||||
applicationId "org.joinmastodon.android"
|
applicationId "org.joinmastodon.android"
|
||||||
minSdk 23
|
minSdk 23
|
||||||
targetSdk 33
|
targetSdk 33
|
||||||
versionCode 99
|
versionCode 100
|
||||||
versionName "2.5.0"
|
versionName "2.5.0"
|
||||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||||
}
|
}
|
||||||
|
@ -173,7 +173,7 @@ public class ComposeFragment extends MastodonToolbarFragment implements ComposeE
|
|||||||
private ForegroundColorSpan overLimitFG;
|
private ForegroundColorSpan overLimitFG;
|
||||||
|
|
||||||
private Runnable emojiKeyboardHider;
|
private Runnable emojiKeyboardHider;
|
||||||
private Runnable sendingBackButtonBlocker;
|
private Runnable sendingBackButtonBlocker=()->{};
|
||||||
private Runnable discardConfirmationCallback=this::confirmDiscardDraftAndFinish;
|
private Runnable discardConfirmationCallback=this::confirmDiscardDraftAndFinish;
|
||||||
private boolean prevHadDraft;
|
private boolean prevHadDraft;
|
||||||
|
|
||||||
@ -750,6 +750,7 @@ public class ComposeFragment extends MastodonToolbarFragment implements ComposeE
|
|||||||
wm.removeView(sendingOverlay);
|
wm.removeView(sendingOverlay);
|
||||||
sendingOverlay=null;
|
sendingOverlay=null;
|
||||||
removeBackCallback(sendingBackButtonBlocker);
|
removeBackCallback(sendingBackButtonBlocker);
|
||||||
|
removeBackCallback(discardConfirmationCallback);
|
||||||
if(editingStatus==null){
|
if(editingStatus==null){
|
||||||
E.post(new StatusCreatedEvent(result, accountID));
|
E.post(new StatusCreatedEvent(result, accountID));
|
||||||
if(replyTo!=null){
|
if(replyTo!=null){
|
||||||
|
Loading…
Reference in New Issue
Block a user