From b867df053bcd55b37f96c2305d78209cd0f32d4a Mon Sep 17 00:00:00 2001 From: Bnyro Date: Sun, 18 Sep 2022 10:44:37 +0200 Subject: [PATCH] fix linter --- .../java/com/github/libretube/LibreTubeApp.kt | 27 +++++++++++++------ 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/app/src/main/java/com/github/libretube/LibreTubeApp.kt b/app/src/main/java/com/github/libretube/LibreTubeApp.kt index 795eb8024..281de0cec 100644 --- a/app/src/main/java/com/github/libretube/LibreTubeApp.kt +++ b/app/src/main/java/com/github/libretube/LibreTubeApp.kt @@ -68,24 +68,35 @@ class LibreTubeApp : Application() { * Initializes the required notification channels for the app. */ private fun initializeNotificationChannels() { - val downloadChannel = NotificationChannelCompat.Builder(DOWNLOAD_CHANNEL_ID, - NotificationManagerCompat.IMPORTANCE_NONE) + val downloadChannel = NotificationChannelCompat.Builder( + DOWNLOAD_CHANNEL_ID, + NotificationManagerCompat.IMPORTANCE_NONE + ) .setName(getString(R.string.download_channel_name)) .setDescription(getString(R.string.download_channel_description)) .build() - val backgroundChannel = NotificationChannelCompat.Builder(BACKGROUND_CHANNEL_ID, - NotificationManagerCompat.IMPORTANCE_LOW) + val backgroundChannel = NotificationChannelCompat.Builder( + BACKGROUND_CHANNEL_ID, + NotificationManagerCompat.IMPORTANCE_LOW + ) .setName(getString(R.string.background_channel_name)) .setDescription(getString(R.string.background_channel_description)) .build() - val pushChannel = NotificationChannelCompat.Builder(PUSH_CHANNEL_ID, - NotificationManagerCompat.IMPORTANCE_DEFAULT) + val pushChannel = NotificationChannelCompat.Builder( + PUSH_CHANNEL_ID, + NotificationManagerCompat.IMPORTANCE_DEFAULT + ) .setName(getString(R.string.push_channel_name)) .setDescription(getString(R.string.push_channel_description)) .build() val notificationManager = NotificationManagerCompat.from(this) - notificationManager.createNotificationChannelsCompat(listOf(downloadChannel, - backgroundChannel, pushChannel)) + notificationManager.createNotificationChannelsCompat( + listOf( + downloadChannel, + backgroundChannel, + pushChannel + ) + ) } }