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

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