From d637124d19a53abc771a6d7412114678b65e31b1 Mon Sep 17 00:00:00 2001 From: Christophe Beyls Date: Mon, 29 Apr 2024 11:50:07 +0200 Subject: [PATCH] faster implementation of replace(" ", "") --- .../androidmakers/domain/interactor/OpenMapUseCase.android.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/domain/src/androidMain/kotlin/fr/androidmakers/domain/interactor/OpenMapUseCase.android.kt b/shared/domain/src/androidMain/kotlin/fr/androidmakers/domain/interactor/OpenMapUseCase.android.kt index 725efa73..03253623 100644 --- a/shared/domain/src/androidMain/kotlin/fr/androidmakers/domain/interactor/OpenMapUseCase.android.kt +++ b/shared/domain/src/androidMain/kotlin/fr/androidmakers/domain/interactor/OpenMapUseCase.android.kt @@ -20,7 +20,7 @@ actual class OpenMapUseCase( // Open in Webview urlOpener.openUrl( platformContext = platformContext, - url = "https://www.google.com/maps/?q=" + coordinates.replace(" ", "") + url = "https://www.google.com/maps/?q=" + coordinates.filter { it != ' ' } ) } }