Skip to content
Commit 5eeb4070 authored by Riddle Hsu's avatar Riddle Hsu
Browse files

Fix wallpaper zoom effect with shell transition

Currently WallpaperController#adjustWallpaperWindows is called for
shell transition at DisplayContent#ensureActivitiesVisible and
Transition#onTransactionReady for collecting visibility change of
wallpaper. But if wallpaper target is cleared and wallpaper is
requested to be invisible, its offset and scale won't be updated.

So this change allows visible window to update wallpaper during
transition. And make sure the offsets are calculated based on the
configuration that reported to client, to avoid mixing coordinates
with different orientation.

Bug: 211447882
Test: adb shell setprop persist.debug.shell_transit 1; reboot
      Set static image as wallpaper (don't use live wallpaper).
      Launch portrait and landscape app from portrait home.
      Observe the wallpaper should show the same zoom effect.
Change-Id: I1db9207c79bc45dedd90e7b13af5517f09abe4a7
parent 9975e2c4
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