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