From 192aef77d7ae2d51f8e830cfc73bd65f37216079 Mon Sep 17 00:00:00 2001 From: wilsonshih Date: Fri, 11 Jun 2021 11:27:38 +0800 Subject: Always do the app reveal animation when dismissing the splash screen Let empty-style splash screen do reveal animation. Also remove the extra animation duration if the icon is empty. Bug: 190695897 Bug: 190695665 Test: manual Test: atest SplashscreenTests Change-Id: I8b3b52369c12fbddc32af8c40f37650cc84a88dd --- core/java/android/window/SplashScreenView.java | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'core/java/android/window/SplashScreenView.java') diff --git a/core/java/android/window/SplashScreenView.java b/core/java/android/window/SplashScreenView.java index 000dfb2bfa59..6772afeb0270 100644 --- a/core/java/android/window/SplashScreenView.java +++ b/core/java/android/window/SplashScreenView.java @@ -85,7 +85,6 @@ public final class SplashScreenView extends FrameLayout { | FLAG_TRANSLUCENT_NAVIGATION | FLAG_TRANSLUCENT_STATUS; private boolean mNotCopyable; - private boolean mRevealAnimationSupported = true; private int mInitBackgroundColor; private int mInitIconBackgroundColor; private View mIconView; @@ -352,25 +351,6 @@ public final class SplashScreenView extends FrameLayout { return !mNotCopyable; } - /** - * If set to true, indicates to the system that this view can be dismissed by playing the - * Reveal animation. - *

- * If the exit animation is handled by the client, the animation won't be played anyway. - * @hide - */ - public void setRevealAnimationSupported(boolean support) { - mRevealAnimationSupported = support; - } - - /** - * Whether this view support reveal animation. - * @hide - */ - public boolean isRevealAnimationSupported() { - return mRevealAnimationSupported; - } - /** * Called when this {@link SplashScreenView} has been copied to be transferred to the client. * -- cgit v1.2.3