From f6af9b8782a9aa10a48db6ee4951af38b8168291 Mon Sep 17 00:00:00 2001 From: Abdelkader Boudih Date: Wed, 13 Nov 2024 11:21:22 +0100 Subject: [PATCH] fix: rename to `quadraticTo` for consistancy (#1397) --- .../java/com/geeksville/mesh/ui/components/DeviceMetrics.kt | 2 +- .../com/geeksville/mesh/ui/components/EnvironmentMetrics.kt | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/com/geeksville/mesh/ui/components/DeviceMetrics.kt b/app/src/main/java/com/geeksville/mesh/ui/components/DeviceMetrics.kt index 914bdfaa0..0aec01ccf 100644 --- a/app/src/main/java/com/geeksville/mesh/ui/components/DeviceMetrics.kt +++ b/app/src/main/java/com/geeksville/mesh/ui/components/DeviceMetrics.kt @@ -183,7 +183,7 @@ private fun DeviceMetricsChart( lastX = (x1 + x2) / 2f - quadraticBezierTo(x1, y1, lastX, (y1 + y2) / 2f) + quadraticTo(x1, y1, lastX, (y1 + y2) / 2f) } } diff --git a/app/src/main/java/com/geeksville/mesh/ui/components/EnvironmentMetrics.kt b/app/src/main/java/com/geeksville/mesh/ui/components/EnvironmentMetrics.kt index 3873f087e..8afbbc071 100644 --- a/app/src/main/java/com/geeksville/mesh/ui/components/EnvironmentMetrics.kt +++ b/app/src/main/java/com/geeksville/mesh/ui/components/EnvironmentMetrics.kt @@ -235,7 +235,7 @@ private fun EnvironmentMetricsChart( moveTo(x1, y1) } lastTempX = (x1 + x2) / 2f - quadraticBezierTo( + quadraticTo( x1, y1, lastTempX, (y1 + y2) / 2f ) } @@ -288,7 +288,7 @@ private fun EnvironmentMetricsChart( moveTo(x1, y1) } lastHumidityX = (x1 + x2) / 2f - quadraticBezierTo( + quadraticTo( x1, y1, lastHumidityX, (y1 + y2) / 2f ) } @@ -341,7 +341,7 @@ private fun EnvironmentMetricsChart( moveTo(x1, y1) } lastIaqX = (x1 + x2) / 2f - quadraticBezierTo( + quadraticTo( x1, y1, lastIaqX,