From 6eafa902cbc15fa35f8f0dfb5e559673fa67f637 Mon Sep 17 00:00:00 2001 From: Filip Gruszczynski Date: Fri, 14 Nov 2014 14:24:37 -0800 Subject: SwipeDismissLayout makes activity opaque only after entry animation ends. Bug: 18340863 Change-Id: Ic60fa2463618f86b1ae23fc4a0c06cd348f28334 --- core/java/android/app/Activity.java | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'core/java/android/app/Activity.java') diff --git a/core/java/android/app/Activity.java b/core/java/android/app/Activity.java index 4b705dd..fdb992a 100644 --- a/core/java/android/app/Activity.java +++ b/core/java/android/app/Activity.java @@ -5586,6 +5586,16 @@ public class Activity extends ContextThemeWrapper } /** + * @hide + */ + public void dispatchEnterAnimationComplete() { + onEnterAnimationComplete(); + if (getWindow() != null && getWindow().getDecorView() != null) { + getWindow().getDecorView().getViewTreeObserver().dispatchOnEnterAnimationComplete(); + } + } + + /** * Adjust the current immersive mode setting. * * Note that changing this value will have no effect on the activity's -- cgit v1.1