Merge "Get elevation in time-lapse View Hierarchy capture." into tm-qpr-dev am: 1b3b71f2d7

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/19626512

Change-Id: I86d98be294214fc259f6d1e1320949fdcbee3d22
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Sunny Goyal
2022-08-16 19:58:49 +00:00
committed by Automerger Merge Worker
2 changed files with 5 additions and 0 deletions
+2
View File
@@ -51,4 +51,6 @@ message ViewNode {
optional int32 visibility = 16;
repeated ViewNode children = 17;
optional float elevation = 18;
}
@@ -240,6 +240,7 @@ public class ViewCapture implements OnDrawListener {
public float translateX, translateY;
public float scaleX, scaleY;
public float alpha;
public float elevation;
public int visibility;
public boolean willNotDraw;
@@ -271,6 +272,7 @@ public class ViewCapture implements OnDrawListener {
visibility = view.getVisibility();
willNotDraw = view.willNotDraw();
elevation = view.getElevation();
}
/**
@@ -303,6 +305,7 @@ public class ViewCapture implements OnDrawListener {
.setAlpha(alpha)
.setVisibility(visibility)
.setWillNotDraw(willNotDraw)
.setElevation(elevation)
.setClipChildren(clipChildren);
ViewPropertyRef result = next;