Skip to content

Commit

Permalink
use finish after transition instead of just finishing the activity
Browse files Browse the repository at this point in the history
  • Loading branch information
klinker24 committed Jun 27, 2017
1 parent 73bc4a8 commit af46232
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public void onCreate(Bundle savedInstanceState) {
@Override
public boolean onOptionsItemSelected(MenuItem item) {
if (item.getItemId() == android.R.id.home) {
finish();
supportFinishAfterTransition();
return true;
} else {
return super.onOptionsItemSelected(item);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ private void setupDragDismiss() {
View.OnClickListener sideClickListener = new View.OnClickListener() {
@Override
public void onClick(View view) {
activity.finish();
activity.supportFinishAfterTransition();
}
};

Expand All @@ -142,7 +142,7 @@ public void onClick(View view) {
@Override
public void onDragDismissed() {
super.onDragDismissed();
activity.finish();
activity.supportFinishAfterTransition();
}
});

Expand Down

0 comments on commit af46232

Please sign in to comment.