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

Commit f11d33ba authored by Robin Lee's avatar Robin Lee Committed by Android (Google) Code Review
Browse files

Merge "Move wallpaper transition leashes to the back" into udc-dev

parents 472c42cc 92180ed0
Loading
Loading
Loading
Loading
+8 −1
Original line number Original line Diff line number Diff line
@@ -176,7 +176,14 @@ public class TransitionUtil {
        }
        }


        // Put all the OPEN/SHOW on top
        // Put all the OPEN/SHOW on top
        if (TransitionUtil.isOpeningType(mode)) {
        if ((change.getFlags() & FLAG_IS_WALLPAPER) != 0) {
            // Wallpaper is always at the bottom, opening wallpaper on top of closing one.
            if (mode == WindowManager.TRANSIT_OPEN || mode == WindowManager.TRANSIT_TO_FRONT) {
                t.setLayer(leash, -zSplitLine + info.getChanges().size() - layer);
            } else {
                t.setLayer(leash, -zSplitLine - layer);
            }
        } else if (TransitionUtil.isOpeningType(mode)) {
            if (isOpening) {
            if (isOpening) {
                t.setLayer(leash, zSplitLine + info.getChanges().size() - layer);
                t.setLayer(leash, zSplitLine + info.getChanges().size() - layer);
                if ((change.getFlags() & FLAG_STARTING_WINDOW_TRANSFER_RECIPIENT) == 0) {
                if ((change.getFlags() & FLAG_STARTING_WINDOW_TRANSFER_RECIPIENT) == 0) {