diff --git a/mobile/src/main/java/org/openhab/habdroid/background/NotificationUpdateObserver.kt b/mobile/src/main/java/org/openhab/habdroid/background/NotificationUpdateObserver.kt index a78e5d0440..89571049cd 100644 --- a/mobile/src/main/java/org/openhab/habdroid/background/NotificationUpdateObserver.kt +++ b/mobile/src/main/java/org/openhab/habdroid/background/NotificationUpdateObserver.kt @@ -71,7 +71,8 @@ internal class NotificationUpdateObserver(context: Context) : Observer= Build.VERSION_CODES.N) { + Build.VERSION.SDK_INT >= Build.VERSION_CODES.N + ) { val tileId = tag.substringAfter(BackgroundTasksManager.WORKER_TAG_PREFIX_TILE_ID).toInt() AbstractTileService.requestTileUpdate(context, tileId) }