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

Commit bd374dc3 authored by shawnlin's avatar shawnlin Committed by Shawn Lin
Browse files

Support windowType in RemoteAnimationTargetCompat

Bug: 181638132
Test: make
Change-Id: I84a439866f69a66339a6b318757850f7e111ef5d
(cherry picked from commit 1a27741b)
parent de698775
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -16,6 +16,8 @@

package com.android.systemui.shared.system;

import static android.view.WindowManager.LayoutParams.INVALID_WINDOW_TYPE;

import android.app.PictureInPictureParams;
import android.app.WindowConfiguration;
import android.graphics.Point;
@@ -57,6 +59,7 @@ public class RemoteAnimationTargetCompat {
    public final Rect contentInsets;
    public final PictureInPictureParams pictureInPictureParams;
    public final int rotationChange;
    public final int windowType;

    private final SurfaceControl mStartLeash;

@@ -78,6 +81,7 @@ public class RemoteAnimationTargetCompat {
        rotationChange = 0;

        mStartLeash = app.startLeash;
        windowType = app.windowType;
    }

    private static int newModeToLegacyMode(int newMode) {
@@ -118,6 +122,7 @@ public class RemoteAnimationTargetCompat {
        pictureInPictureParams = null;
        mStartLeash = null;
        rotationChange = change.getEndRotation() - change.getStartRotation();
        windowType = INVALID_WINDOW_TYPE;
    }

    public static RemoteAnimationTargetCompat[] wrap(RemoteAnimationTarget[] apps) {