From 7d6cb913de9b51dba0bae79e527b7d4fe79eb35d Mon Sep 17 00:00:00 2001 From: Ned Burns Date: Fri, 2 Dec 2016 17:25:33 -0500 Subject: Modify SwipeDismissLayout to perform its own exit animation Instead of relying on the window animation system, in the special case of a swipe-dismiss, disable any default window exit animation and perform a custom animation. This bypasses some bugs in the window animator codebase and allows us to have a nice "rebound" animation if the user doesn't swipe far/fast enough to trigger a dismiss. Bug: 33041168 Change-Id: Ied45700d35a59950bacef1ba0650eaa5bc60fadb --- core/java/android/app/Dialog.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/java/android/app/Dialog.java') diff --git a/core/java/android/app/Dialog.java b/core/java/android/app/Dialog.java index f29e576ff215..9c1778010f43 100644 --- a/core/java/android/app/Dialog.java +++ b/core/java/android/app/Dialog.java @@ -744,7 +744,7 @@ public class Dialog implements DialogInterface, Window.Callback, /** @hide */ @Override - public void onWindowDismissed(boolean finishTask) { + public void onWindowDismissed(boolean finishTask, boolean suppressWindowTransition) { dismiss(); } -- cgit v1.2.3