Skip to content
Commit 6393ad12 authored by Riddle Hsu's avatar Riddle Hsu
Browse files

Align the end time of wallpaper rotation transform to its target

That fixes the flicker when backing from a different orientation
activity than home. Because the wallpaper window may be updated
later than home's transition. Ideally, the fixed rotation transform
of wallpaper should be synced with its target for consistency.

Also fixes various hidden errors of RecentsAnimationControllerTest.
Mostly about mDisplayContent:
 - It is not default display so it requires additional mock.
 - It contains many testing windows from default setup, that may
   disturb the test flow.
 - Currently it cannot rotate due to wrong condition in
   TestDisplayContent.Builder.
That leads to several false positive results. Now it is changed to
use the existing default display and home stack, which is more
efficient and reasonable.

Bug: 148000485
Test: atest RecentsAnimationControllerTest# \
      testWallpaperHasFixedRotationApplied
Change-Id: I4c054e8a5c9ef654c635055509e2c55f519be932
parent 6a9cd118
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment