diff --git a/library/src/main/java/xyz/klinker/android/drag_dismiss/activity/AbstractDragDismissActivity.java b/library/src/main/java/xyz/klinker/android/drag_dismiss/activity/AbstractDragDismissActivity.java index 13de4dd..8e16b91 100644 --- a/library/src/main/java/xyz/klinker/android/drag_dismiss/activity/AbstractDragDismissActivity.java +++ b/library/src/main/java/xyz/klinker/android/drag_dismiss/activity/AbstractDragDismissActivity.java @@ -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); diff --git a/library/src/main/java/xyz/klinker/android/drag_dismiss/delegate/AbstractDragDismissDelegate.java b/library/src/main/java/xyz/klinker/android/drag_dismiss/delegate/AbstractDragDismissDelegate.java index a06c758..9932028 100644 --- a/library/src/main/java/xyz/klinker/android/drag_dismiss/delegate/AbstractDragDismissDelegate.java +++ b/library/src/main/java/xyz/klinker/android/drag_dismiss/delegate/AbstractDragDismissDelegate.java @@ -130,7 +130,7 @@ private void setupDragDismiss() { View.OnClickListener sideClickListener = new View.OnClickListener() { @Override public void onClick(View view) { - activity.finish(); + activity.supportFinishAfterTransition(); } }; @@ -142,7 +142,7 @@ public void onClick(View view) { @Override public void onDragDismissed() { super.onDragDismissed(); - activity.finish(); + activity.supportFinishAfterTransition(); } });