From 1ae4f3b431ba99635b11be169c275d333413b95f Mon Sep 17 00:00:00 2001 From: Jacob Fielding Date: Mon, 16 Dec 2024 18:53:20 -0800 Subject: [PATCH] feat: android speed limit view --- .../ferrostar/core/annotation/AnnotationWrapper.kt | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/android/core/src/main/java/com/stadiamaps/ferrostar/core/annotation/AnnotationWrapper.kt b/android/core/src/main/java/com/stadiamaps/ferrostar/core/annotation/AnnotationWrapper.kt index bd38d453..cf461dac 100644 --- a/android/core/src/main/java/com/stadiamaps/ferrostar/core/annotation/AnnotationWrapper.kt +++ b/android/core/src/main/java/com/stadiamaps/ferrostar/core/annotation/AnnotationWrapper.kt @@ -3,10 +3,7 @@ package com.stadiamaps.ferrostar.core.annotation import com.stadiamaps.ferrostar.core.measurement.MeasurementSpeed import com.stadiamaps.ferrostar.core.measurement.MeasurementSpeedUnit -data class AnnotationWrapper( - val annotation: T? = null, - val speed: Speed? = null -) { +data class AnnotationWrapper(val annotation: T? = null, val speed: Speed? = null) { val speedLimit: MeasurementSpeed? get() = when (speed) {