Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 831ee149 authored by Aurélien Pomini's avatar Aurélien Pomini
Browse files

Fix the computation of default crops to match legacy

Pre multi-crop, the wallpaper is always shown left to right (or right to
left if RTL) and use any additional width for parallax for all screens.

The only exception is for the folded screen of a foldable device: in
that case we always show the center of what's of the unfolded. Since the
logic to do that was in WM and has been deactivated, rewrite this logic
in WallpaperCropper.

Overall, the new system with no suggested crops should work exactly like
the old system. The only difference is that we now set a limit of
maximum parallax (1x the total width of the wallpape for parallax).
This limit shouldn't have real-life effect since the picker never sets a
parallax as high as this.

Flag: ACONFIG com.android.window.flags.multi_crop TEAMFOOD
Bug: 330518320
Test: atest WallpaperCropperTest
Change-Id: I51f77d9e785b9a06b001afd08d480556d4bbde28
parent f6d2d5ed
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