From 29745f73d4167d6f25d6990a3bb5db4bb76af970 Mon Sep 17 00:00:00 2001 From: Riddle Hsu Date: Thu, 20 May 2021 15:38:41 +0800 Subject: [PATCH] Use opaque enter animation for freezing without rotation change Currently the alpha of root surface applies to child surfaces individually instead of the composited result. To polish the see through effect, keep the enter animation with alpha 1. Bug: 185403130 Test: Toggle dark theme from quick setting. The app behind notification shade won't be slightly visible. Change-Id: I88d93a5e365a50b3965f634c20741450e8127fba --- .../java/com/android/server/wm/ScreenRotationAnimation.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/core/java/com/android/server/wm/ScreenRotationAnimation.java b/services/core/java/com/android/server/wm/ScreenRotationAnimation.java index 50749a961b270..9d8b8f76ad402 100644 --- a/services/core/java/com/android/server/wm/ScreenRotationAnimation.java +++ b/services/core/java/com/android/server/wm/ScreenRotationAnimation.java @@ -372,7 +372,7 @@ class ScreenRotationAnimation { mRotateExitAnimation = AnimationUtils.loadAnimation(mContext, R.anim.screen_rotate_0_exit); mRotateEnterAnimation = AnimationUtils.loadAnimation(mContext, - R.anim.screen_rotate_0_enter); + R.anim.rotation_animation_enter); break; case Surface.ROTATION_90: mRotateExitAnimation = AnimationUtils.loadAnimation(mContext,