Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 608cd698 authored by Stefan Andonian's avatar Stefan Andonian
Browse files

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
parent cf03d044
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -51,4 +51,6 @@ message ViewNode {
  optional int32 visibility = 16;

  repeated ViewNode children = 17;

  optional float elevation = 18;
}
+3 −0
Original line number Diff line number Diff line
@@ -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;