diff --git a/leanback/src/main/java/de/nicidienase/chaosflix/leanback/events/EventsActivity.kt b/leanback/src/main/java/de/nicidienase/chaosflix/leanback/events/EventsActivity.kt index 3b4b3a2c..b5d62932 100644 --- a/leanback/src/main/java/de/nicidienase/chaosflix/leanback/events/EventsActivity.kt +++ b/leanback/src/main/java/de/nicidienase/chaosflix/leanback/events/EventsActivity.kt @@ -28,7 +28,7 @@ class EventsActivity : androidx.fragment.app.FragmentActivity() { public override fun onCreate(savedInstanceState: Bundle?) { super.onCreate(savedInstanceState) val conf = intent.getParcelableExtra(CONFERENCE) - if( conf != null ){ + if (conf != null) { conference = conf } else { finish() diff --git a/leanback/src/main/java/de/nicidienase/chaosflix/leanback/recommendations/ChannelManager.kt b/leanback/src/main/java/de/nicidienase/chaosflix/leanback/recommendations/ChannelManager.kt index da331a79..4683350c 100644 --- a/leanback/src/main/java/de/nicidienase/chaosflix/leanback/recommendations/ChannelManager.kt +++ b/leanback/src/main/java/de/nicidienase/chaosflix/leanback/recommendations/ChannelManager.kt @@ -76,7 +76,7 @@ class ChannelManager( return events.filterNot { activeOrDismissedRecommendations.contains(it.guid) }.map { publishEvent(channelId, it, contentResolver).apply { val sec = this.second - if( sec != null ){ + if (sec != null) { mediaRepository.setRecommendationIdForEvent(this.first, sec, channel.name) } }