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

Commit 90802137 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Put change type below closing type for a close transition" into udc-dev...

Merge "Put change type below closing type for a close transition" into udc-dev am: 6aecb91b am: 58a7150e

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/23053055



Change-Id: I75421751e7f84a4b8fb273e4219611e1f99a7e74
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 659fee6b 58a7150e
Loading
Loading
Loading
Loading
+10 −2
Original line number Diff line number Diff line
@@ -501,7 +501,9 @@ public class Transitions implements RemoteCallable<Transitions>,
     */
    private static void setupAnimHierarchy(@NonNull TransitionInfo info,
            @NonNull SurfaceControl.Transaction t, @NonNull SurfaceControl.Transaction finishT) {
        boolean isOpening = isOpeningType(info.getType());
        final int type = info.getType();
        final boolean isOpening = isOpeningType(type);
        final boolean isClosing = isClosingType(type);
        for (int i = 0; i < info.getRootCount(); ++i) {
            t.show(info.getRoot(i).getLeash());
        }
@@ -554,8 +556,14 @@ public class Transitions implements RemoteCallable<Transitions>,
                    layer = zSplitLine + numChanges - i;
                }
            } else { // CHANGE or other
                if (isClosing) {
                    // Put below CLOSE mode.
                    layer = zSplitLine - i;
                } else {
                    // Put above CLOSE mode.
                    layer = zSplitLine + numChanges - i;
                }
            }
            t.setLayer(leash, layer);
        }
    }