Get elevation in time-lapse View Hierarchy capture.
Bug: 234032088 Test: Verified that elevation attributes from device are captured and show up correctly on go/web-hv UI. Change-Id: Id4c5a5c5a003cc38d332edc99365b160f17c52a6
This commit is contained in:
1 parent
cf03d04469
commit
608cd69805
2 files changed
+5
No files matched your search
@@ -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