diff --git a/app/src/main/kotlin/de/timklge/karooheadwind/datatypes/WeatherForecastDataType.kt b/app/src/main/kotlin/de/timklge/karooheadwind/datatypes/WeatherForecastDataType.kt index 208914e..f974563 100644 --- a/app/src/main/kotlin/de/timklge/karooheadwind/datatypes/WeatherForecastDataType.kt +++ b/app/src/main/kotlin/de/timklge/karooheadwind/datatypes/WeatherForecastDataType.kt @@ -177,7 +177,11 @@ class WeatherForecastDataType( } val result = glance.compose(context, DpSize.Unspecified) { - Row(modifier = GlanceModifier.fillMaxSize().clickable(onClick = actionRunCallback()), horizontalAlignment = Alignment.Horizontal.CenterHorizontally) { + var modifier = GlanceModifier.fillMaxSize() + + if (!config.preview) modifier = modifier.clickable(onClick = actionRunCallback()) + + Row(modifier = modifier, horizontalAlignment = Alignment.Horizontal.CenterHorizontally) { val hourOffset = widgetSettings?.currentForecastHourOffset ?: 0 var previousDate: String? = let {