From 6b210e1542ad4ea739cef54ce12aeeef78a05e37 Mon Sep 17 00:00:00 2001 From: Isira Seneviratne Date: Mon, 10 Oct 2022 06:23:46 +0530 Subject: [PATCH] Apply ktlint formatting. --- .../org/schabi/newpipe/NewVersionWorker.kt | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/app/src/main/java/org/schabi/newpipe/NewVersionWorker.kt b/app/src/main/java/org/schabi/newpipe/NewVersionWorker.kt index 1aa02d8dc..dac831fe4 100644 --- a/app/src/main/java/org/schabi/newpipe/NewVersionWorker.kt +++ b/app/src/main/java/org/schabi/newpipe/NewVersionWorker.kt @@ -47,8 +47,10 @@ class NewVersionWorker( if (inputData.getBoolean(IS_MANUAL, false)) { // Show toast stating that the app is up-to-date if the update check was manual. ContextCompat.getMainExecutor(applicationContext).execute { - Toast.makeText(applicationContext, R.string.app_update_unavailable_toast, - Toast.LENGTH_SHORT).show() + Toast.makeText( + applicationContext, R.string.app_update_unavailable_toast, + Toast.LENGTH_SHORT + ).show() } } return @@ -66,10 +68,14 @@ class NewVersionWorker( .setVisibility(NotificationCompat.VISIBILITY_PUBLIC) .setAutoCancel(true) .setContentIntent(pendingIntent) - .setContentTitle(applicationContext.getString( - R.string.app_update_available_notification_title)) - .setContentText(applicationContext.getString( - R.string.app_update_available_notification_text, versionName)) + .setContentTitle( + applicationContext.getString(R.string.app_update_available_notification_title) + ) + .setContentText( + applicationContext.getString( + R.string.app_update_available_notification_text, versionName + ) + ) val notificationManager = NotificationManagerCompat.from(applicationContext) notificationManager.notify(2000, notificationBuilder.build())