[Android] Fix a kotlin migration typo

Nicolas Pomepuy git at videolan.org
Wed Apr 20 08:23:37 UTC 2022


vlc-android | branch: master | Nicolas Pomepuy <nicolas at videolabs.io> | Wed Apr 20 08:37:58 2022 +0200| [c71591f266562743a6882608c0a1d253695ace34] | committer: Nicolas Pomepuy

Fix a kotlin migration typo

> https://code.videolan.org/videolan/vlc-android/commit/c71591f266562743a6882608c0a1d253695ace34
---

 .../src/main/java/org/videolan/liveplotgraph/PlotView.kt                | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/application/live-plot-graph/src/main/java/org/videolan/liveplotgraph/PlotView.kt b/application/live-plot-graph/src/main/java/org/videolan/liveplotgraph/PlotView.kt
index 449034751..413ec8c86 100644
--- a/application/live-plot-graph/src/main/java/org/videolan/liveplotgraph/PlotView.kt
+++ b/application/live-plot-graph/src/main/java/org/videolan/liveplotgraph/PlotView.kt
@@ -121,7 +121,7 @@ class PlotView : FrameLayout {
         data.forEach {
             minsX.add(it.data.minByOrNull { it.key }?.key ?: 0L)
         }
-        val minX = minsX.maxOrNull() ?: 0L
+        val minX = minsX.minOrNull() ?: 0L
 
         drawLines(maxY, minX, maxX, canvas)
         drawGrid(canvas, maxY, minX, maxX)



More information about the Android mailing list