Do not show animation background with wallpaper transition
Though in real case, it will be remote animation when launching
app from built-in launcher so DefaultTransitionHandler won't be used.
While running test which starts app from shell command, or 3rd party
launcher which uses default animation, the animation may not look
good if a color layer covers on visible wallpaper when opening apps.
Bug: 227736816
Test: adb shell setprop persist.wm.debug.shell_transit 1; reboot
com.android.server.wm.flicker.launch.OpenAppColdTest
Change-Id: Ibbce257537e2783934375079424e9f877b738a06
This commit is contained in:
@@ -417,7 +417,8 @@ public class DefaultTransitionHandler implements Transitions.TransitionHandler {
|
||||
|| type == TRANSIT_TO_FRONT
|
||||
|| type == TRANSIT_TO_BACK;
|
||||
final boolean isTranslucent = (change.getFlags() & FLAG_TRANSLUCENT) != 0;
|
||||
if (isOpenOrCloseTransition && !isTranslucent) {
|
||||
if (isOpenOrCloseTransition && !isTranslucent
|
||||
&& wallpaperTransit == WALLPAPER_TRANSITION_NONE) {
|
||||
// Use the overview background as the background for the animation
|
||||
final Context uiContext = ActivityThread.currentActivityThread()
|
||||
.getSystemUiContext();
|
||||
|
||||
Reference in New Issue
Block a user