Skip to content

Commit

Permalink
Fix another ktlint style issue
Browse files Browse the repository at this point in the history
Introduced in openhab#3643.

Signed-off-by: Danny Baumann <[email protected]>
  • Loading branch information
maniac103 committed Apr 17, 2024
1 parent 7a42be8 commit 351376b
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ internal class NotificationUpdateObserver(context: Context) : Observer<List<Work
val latestInfoByTag = HashMap<String, WorkInfo>()
for (info in value) {
for (tag in info.tags) {
if (tag in BackgroundTasksManager.KNOWN_KEYS ||
if (
tag in BackgroundTasksManager.KNOWN_KEYS ||
tag == BackgroundTasksManager.WORKER_TAG_VOICE_COMMAND ||
tag.startsWith(BackgroundTasksManager.WORKER_TAG_PREFIX_NFC) ||
tag.startsWith(BackgroundTasksManager.WORKER_TAG_PREFIX_TASKER) ||
Expand All @@ -70,8 +71,10 @@ internal class NotificationUpdateObserver(context: Context) : Observer<List<Work
else -> {}
}
}
} else if (tag.startsWith(BackgroundTasksManager.WORKER_TAG_PREFIX_TILE_ID) &&
Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
} else if (
tag.startsWith(BackgroundTasksManager.WORKER_TAG_PREFIX_TILE_ID) &&
Build.VERSION.SDK_INT >= Build.VERSION_CODES.N
) {
val tileId = tag.substringAfter(BackgroundTasksManager.WORKER_TAG_PREFIX_TILE_ID).toInt()
AbstractTileService.requestTileUpdate(context, tileId)
}
Expand Down

0 comments on commit 351376b

Please sign in to comment.