fix: render route preview warning on a new line

This commit is contained in:
dasemu committed 2026-10-26 09:29:40 +01:00
1 parent b14c625263
commit a7f7198fd3
1 file changed
+1 -1
@@ -618,7 +618,7 @@ class TftService : Service() {
distanceMeters = metres.coerceAtMost(Int.MAX_VALUE.toLong()).toInt(), distanceMeters = metres.coerceAtMost(Int.MAX_VALUE.toLong()).toInt(),
durationSeconds = 0, destination = geometry.last(), imported = true) durationSeconds = 0, destination = geometry.last(), imported = true)
prepareImportedRoute(ImportedRoute(imported.name, result, isTrack = true)) prepareImportedRoute(ImportedRoute(imported.name, result, isTrack = true))
mutableRouteInfo.value = "GPX ajustado a carreteras · %.1f km · %d puntos\\nComprueba que no haya autovías ni tramos inadecuados antes de salir. No hay avisos de giro ni recálculo.".format(java.util.Locale.ROOT, metres / 1000.0, geometry.size) mutableRouteInfo.value = "GPX ajustado a carreteras · %.1f km · %d puntos\nComprueba que no haya autovías ni tramos inadecuados antes de salir. No hay avisos de giro ni recálculo.".format(java.util.Locale.ROOT, metres / 1000.0, geometry.size)
} catch (cancelled: CancellationException) { } catch (cancelled: CancellationException) {
throw cancelled throw cancelled
} catch (error: Exception) { } catch (error: Exception) {