This commit is contained in:
Grishka 2024-06-19 05:14:02 +03:00
parent e4e91dd283
commit 1f051f3fd8
2 changed files with 16 additions and 1 deletions

View File

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

View File

@ -404,6 +404,21 @@ public class ComposeFragment extends MastodonToolbarFragment implements ComposeE
super.onResume(); super.onResume();
} }
@Override
protected void onHidden(){
super.onHidden();
if(prevHadDraft){
prevHadDraft=false;
removeBackCallback(discardConfirmationCallback);
}
}
@Override
protected void onShown(){
super.onShown();
updateDraftState();
}
@Override @Override
public void onViewCreated(View view, Bundle savedInstanceState){ public void onViewCreated(View view, Bundle savedInstanceState){
super.onViewCreated(view, savedInstanceState); super.onViewCreated(view, savedInstanceState);