Skip to content

Commit

Permalink
Fix #852
Browse files Browse the repository at this point in the history
  • Loading branch information
grishka committed Jun 19, 2024
1 parent e4e91dd commit 1f051f3
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion mastodon/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ android {
applicationId "org.joinmastodon.android"
minSdk 23
targetSdk 33
versionCode 102
versionCode 103
versionName "2.5.1"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -404,6 +404,21 @@ public void onResume(){
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);
Expand Down

0 comments on commit 1f051f3

Please sign in to comment.