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

Commit 3b31d32f authored by Okan Arikan's avatar Okan Arikan Committed by android-build-merger
Browse files

Merge "Pose flicker fix on some devices" into oc-dev am: 5da2188e

am: 1c8b3073

Change-Id: Ice8603e580a34d3d99ee404c9aabbe2fb1ad0960
parents bc6f28a0 1c8b3073
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -484,7 +484,10 @@ void PoseService::UpdatePoseMode() {
      }

      // Update the current latency model.
      sensor_latency_.AddLatency(GetSystemClockNs() - pose_state.timestamp_ns);
      if (pose_state.timestamp_ns != 0) {
        sensor_latency_.AddLatency(GetSystemClockNs() -
                                   pose_state.timestamp_ns);
      }

      // Update the timestamp with the expected latency.
      WriteAsyncPoses(