Merge "Adding missing rotationChange in RemoteAnimationTarget" into tm-qpr-dev
This commit is contained in:
@@ -241,6 +241,8 @@ public class RemoteAnimationTarget implements Parcelable {
|
||||
*/
|
||||
public boolean willShowImeOnTarget;
|
||||
|
||||
public int rotationChange;
|
||||
|
||||
public RemoteAnimationTarget(int taskId, int mode, SurfaceControl leash, boolean isTranslucent,
|
||||
Rect clipRect, Rect contentInsets, int prefixOrderIndex, Point position,
|
||||
Rect localBounds, Rect screenSpaceBounds,
|
||||
@@ -302,6 +304,7 @@ public class RemoteAnimationTarget implements Parcelable {
|
||||
backgroundColor = in.readInt();
|
||||
showBackdrop = in.readBoolean();
|
||||
willShowImeOnTarget = in.readBoolean();
|
||||
rotationChange = in.readInt();
|
||||
}
|
||||
|
||||
public void setShowBackdrop(boolean shouldShowBackdrop) {
|
||||
@@ -316,6 +319,14 @@ public class RemoteAnimationTarget implements Parcelable {
|
||||
return willShowImeOnTarget;
|
||||
}
|
||||
|
||||
public void setRotationChange(int rotationChange) {
|
||||
this.rotationChange = rotationChange;
|
||||
}
|
||||
|
||||
public int getRotationChange() {
|
||||
return rotationChange;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int describeContents() {
|
||||
return 0;
|
||||
@@ -345,6 +356,7 @@ public class RemoteAnimationTarget implements Parcelable {
|
||||
dest.writeInt(backgroundColor);
|
||||
dest.writeBoolean(showBackdrop);
|
||||
dest.writeBoolean(willShowImeOnTarget);
|
||||
dest.writeInt(rotationChange);
|
||||
}
|
||||
|
||||
public void dump(PrintWriter pw, String prefix) {
|
||||
|
||||
@@ -60,7 +60,7 @@ public class RemoteAnimationTargetCompat {
|
||||
public static final int ACTIVITY_TYPE_ASSISTANT = WindowConfiguration.ACTIVITY_TYPE_ASSISTANT;
|
||||
public final int activityType;
|
||||
|
||||
public int taskId;
|
||||
public final int taskId;
|
||||
public final SurfaceControl leash;
|
||||
public final boolean isTranslucent;
|
||||
public final Rect clipRect;
|
||||
@@ -72,7 +72,7 @@ public class RemoteAnimationTargetCompat {
|
||||
public final Rect startScreenSpaceBounds;
|
||||
public final boolean isNotInRecents;
|
||||
public final Rect contentInsets;
|
||||
public ActivityManager.RunningTaskInfo taskInfo;
|
||||
public final ActivityManager.RunningTaskInfo taskInfo;
|
||||
public final boolean allowEnterPip;
|
||||
public final int rotationChange;
|
||||
public final int windowType;
|
||||
@@ -102,7 +102,7 @@ public class RemoteAnimationTargetCompat {
|
||||
activityType = app.windowConfiguration.getActivityType();
|
||||
taskInfo = app.taskInfo;
|
||||
allowEnterPip = app.allowEnterPip;
|
||||
rotationChange = 0;
|
||||
rotationChange = app.rotationChange;
|
||||
|
||||
mStartLeash = app.startLeash;
|
||||
windowType = app.windowType;
|
||||
@@ -131,6 +131,7 @@ public class RemoteAnimationTargetCompat {
|
||||
isNotInRecents, mStartLeash, startBounds, taskInfo, allowEnterPip, windowType
|
||||
);
|
||||
target.setWillShowImeOnTarget(willShowImeOnTarget);
|
||||
target.setRotationChange(rotationChange);
|
||||
return target;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user