From 26bff0f752fe2588b86928abf39c0909dff7deef Mon Sep 17 00:00:00 2001 From: ivan Date: Sun, 24 May 2020 21:36:42 +0200 Subject: [PATCH] fix position formating - ensure number formating is in US locale --- .../main/java/eu/zderadicka/audioserve/net/PositionClient.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/zderadicka/audioserve/net/PositionClient.kt b/app/src/main/java/eu/zderadicka/audioserve/net/PositionClient.kt index 4bcb082..4bd1c71 100644 --- a/app/src/main/java/eu/zderadicka/audioserve/net/PositionClient.kt +++ b/app/src/main/java/eu/zderadicka/audioserve/net/PositionClient.kt @@ -141,7 +141,7 @@ class PositionClient(val serverUrl:String, val token:String, val group: String?) private fun encodeMessage(filePath: String, position: Double):String = lastFile.let { - fun fmt(p:Double) = "%.3f".format(p) + fun fmt(p:Double) = "%.3f".format(java.util.Locale.US, p) return if (it == filePath) { "${fmt(position)}|" } else {