Skip to content

Commit 6b210e1

Browse files
Isira-SeneviratneStypox
authored andcommitted
Apply ktlint formatting.
1 parent f1b15a9 commit 6b210e1

1 file changed

Lines changed: 12 additions & 6 deletions

File tree

app/src/main/java/org/schabi/newpipe/NewVersionWorker.kt

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,10 @@ class NewVersionWorker(
4747
if (inputData.getBoolean(IS_MANUAL, false)) {
4848
// Show toast stating that the app is up-to-date if the update check was manual.
4949
ContextCompat.getMainExecutor(applicationContext).execute {
50-
Toast.makeText(applicationContext, R.string.app_update_unavailable_toast,
51-
Toast.LENGTH_SHORT).show()
50+
Toast.makeText(
51+
applicationContext, R.string.app_update_unavailable_toast,
52+
Toast.LENGTH_SHORT
53+
).show()
5254
}
5355
}
5456
return
@@ -66,10 +68,14 @@ class NewVersionWorker(
6668
.setVisibility(NotificationCompat.VISIBILITY_PUBLIC)
6769
.setAutoCancel(true)
6870
.setContentIntent(pendingIntent)
69-
.setContentTitle(applicationContext.getString(
70-
R.string.app_update_available_notification_title))
71-
.setContentText(applicationContext.getString(
72-
R.string.app_update_available_notification_text, versionName))
71+
.setContentTitle(
72+
applicationContext.getString(R.string.app_update_available_notification_title)
73+
)
74+
.setContentText(
75+
applicationContext.getString(
76+
R.string.app_update_available_notification_text, versionName
77+
)
78+
)
7379

7480
val notificationManager = NotificationManagerCompat.from(applicationContext)
7581
notificationManager.notify(2000, notificationBuilder.build())

0 commit comments

Comments
 (0)