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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user