Merge "Fix WallpaperWindowToken visible update with Shell transition"
This commit is contained in:
@@ -26,9 +26,6 @@ import com.android.server.wm.flicker.FlickerTestParameterFactory
|
||||
import com.android.server.wm.flicker.LAUNCHER_COMPONENT
|
||||
import com.android.server.wm.flicker.annotation.Group3
|
||||
import com.android.server.wm.flicker.dsl.FlickerBuilder
|
||||
import com.android.server.wm.flicker.helpers.isShellTransitionsEnabled
|
||||
import org.junit.Assume.assumeFalse
|
||||
import org.junit.Before
|
||||
import org.junit.FixMethodOrder
|
||||
import org.junit.Test
|
||||
import org.junit.runner.RunWith
|
||||
@@ -65,12 +62,6 @@ class ExpandPipOnDoubleClickTest(testSpec: FlickerTestParameter) : PipTransition
|
||||
}
|
||||
}
|
||||
|
||||
@Before
|
||||
fun onBefore() {
|
||||
// This CUJ don't work in shell transitions because of b/204570898 b/204562589
|
||||
assumeFalse(isShellTransitionsEnabled)
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks that the pip app window remains inside the display bounds throughout the whole
|
||||
* animation
|
||||
|
||||
@@ -107,7 +107,7 @@ class WallpaperWindowToken extends WindowToken {
|
||||
/** Returns {@code true} if visibility is changed. */
|
||||
boolean updateWallpaperWindows(boolean visible) {
|
||||
boolean changed = false;
|
||||
if (isVisible() != visible) {
|
||||
if (mVisibleRequested != visible) {
|
||||
ProtoLog.d(WM_DEBUG_WALLPAPER, "Wallpaper token %s visible=%b",
|
||||
token, visible);
|
||||
setVisibility(visible);
|
||||
|
||||
Reference in New Issue
Block a user