Skip to content

Commit

Permalink
Fixed the back button bug
Browse files Browse the repository at this point in the history
  • Loading branch information
arepina committed Jan 13, 2018
1 parent ff7665e commit db30f03
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,10 @@ public boolean onCreateOptionsMenu(Menu menu) {
protected void onActivityResult(int requestCode, int resultCode, Intent data) {
super.onActivityResult(requestCode, resultCode, data);
if(MILESTONE_EDIT == requestCode) {
milestone = (Milestone) data.getSerializableExtra(EXTRA_MILESTONE);
updateMilestone();
if(data != null) { // user has changed something
milestone = (Milestone) data.getSerializableExtra(EXTRA_MILESTONE);
updateMilestone();
}
}
}

Expand Down

0 comments on commit db30f03

Please sign in to comment.