Support windowType in RemoteAnimationTargetCompat
Bug: 181638132
Test: make
Change-Id: I84a439866f69a66339a6b318757850f7e111ef5d
(cherry picked from commit 1a27741b35)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user