From 128a7e66634ae2e95311a7d62aa6bb2d06c99d26 Mon Sep 17 00:00:00 2001 From: mueller-ma Date: Sun, 24 Sep 2023 17:46:38 +0200 Subject: [PATCH] Item control: Don't use TYPE_SHUTTER TYPE_SHUTTER has the same icon as TYPE_WINDOW. It's also not animated, compared to TYPE_BLINDS. Use the same icon for `blinds` and `rollershutter` as they are the same in the classic icon set as well. Signed-off-by: mueller-ma --- .../openhab/habdroid/background/ItemsControlsProviderService.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mobile/src/main/java/org/openhab/habdroid/background/ItemsControlsProviderService.kt b/mobile/src/main/java/org/openhab/habdroid/background/ItemsControlsProviderService.kt index 85c17fe417..1aa681c2e7 100644 --- a/mobile/src/main/java/org/openhab/habdroid/background/ItemsControlsProviderService.kt +++ b/mobile/src/main/java/org/openhab/habdroid/background/ItemsControlsProviderService.kt @@ -358,7 +358,7 @@ fun Item.getDeviceType() = when (category?.lowercase()?.substringAfterLast(':')) "lock" -> DeviceTypes.TYPE_LOCK "fan", "fan_box", "fan_ceiling" -> DeviceTypes.TYPE_FAN "blinds" -> DeviceTypes.TYPE_BLINDS - "rollershutter" -> DeviceTypes.TYPE_SHUTTER + "rollershutter" -> DeviceTypes.TYPE_BLINDS "window" -> DeviceTypes.TYPE_WINDOW "dryer" -> DeviceTypes.TYPE_DRYER "washingmachine" -> DeviceTypes.TYPE_WASHER