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

Commit 1b3b71f2 authored by Sunny Goyal's avatar Sunny Goyal Committed by Android (Google) Code Review
Browse files

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

parents 4a8871ce 608cd698
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -51,4 +51,6 @@ message ViewNode {
  optional int32 visibility = 16;
  optional int32 visibility = 16;


  repeated ViewNode children = 17;
  repeated ViewNode children = 17;

  optional float elevation = 18;
}
}
+3 −0
Original line number Original line Diff line number Diff line
@@ -240,6 +240,7 @@ public class ViewCapture implements OnDrawListener {
        public float translateX, translateY;
        public float translateX, translateY;
        public float scaleX, scaleY;
        public float scaleX, scaleY;
        public float alpha;
        public float alpha;
        public float elevation;


        public int visibility;
        public int visibility;
        public boolean willNotDraw;
        public boolean willNotDraw;
@@ -271,6 +272,7 @@ public class ViewCapture implements OnDrawListener {


            visibility = view.getVisibility();
            visibility = view.getVisibility();
            willNotDraw = view.willNotDraw();
            willNotDraw = view.willNotDraw();
            elevation = view.getElevation();
        }
        }


        /**
        /**
@@ -303,6 +305,7 @@ public class ViewCapture implements OnDrawListener {
                    .setAlpha(alpha)
                    .setAlpha(alpha)
                    .setVisibility(visibility)
                    .setVisibility(visibility)
                    .setWillNotDraw(willNotDraw)
                    .setWillNotDraw(willNotDraw)
                    .setElevation(elevation)
                    .setClipChildren(clipChildren);
                    .setClipChildren(clipChildren);


            ViewPropertyRef result = next;
            ViewPropertyRef result = next;