File tree Expand file tree Collapse file tree
app/src/main/java/org/schabi/newpipe Expand file tree Collapse file tree Original file line number Diff line number Diff 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())
You can’t perform that action at this time.
0 commit comments