mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2024-11-16 14:54:57 +00:00
Apply ktlint formatting.
This commit is contained in:
parent
f1b15a95a4
commit
6b210e1542
@ -47,8 +47,10 @@ class NewVersionWorker(
|
|||||||
if (inputData.getBoolean(IS_MANUAL, false)) {
|
if (inputData.getBoolean(IS_MANUAL, false)) {
|
||||||
// Show toast stating that the app is up-to-date if the update check was manual.
|
// Show toast stating that the app is up-to-date if the update check was manual.
|
||||||
ContextCompat.getMainExecutor(applicationContext).execute {
|
ContextCompat.getMainExecutor(applicationContext).execute {
|
||||||
Toast.makeText(applicationContext, R.string.app_update_unavailable_toast,
|
Toast.makeText(
|
||||||
Toast.LENGTH_SHORT).show()
|
applicationContext, R.string.app_update_unavailable_toast,
|
||||||
|
Toast.LENGTH_SHORT
|
||||||
|
).show()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
@ -66,10 +68,14 @@ class NewVersionWorker(
|
|||||||
.setVisibility(NotificationCompat.VISIBILITY_PUBLIC)
|
.setVisibility(NotificationCompat.VISIBILITY_PUBLIC)
|
||||||
.setAutoCancel(true)
|
.setAutoCancel(true)
|
||||||
.setContentIntent(pendingIntent)
|
.setContentIntent(pendingIntent)
|
||||||
.setContentTitle(applicationContext.getString(
|
.setContentTitle(
|
||||||
R.string.app_update_available_notification_title))
|
applicationContext.getString(R.string.app_update_available_notification_title)
|
||||||
.setContentText(applicationContext.getString(
|
)
|
||||||
R.string.app_update_available_notification_text, versionName))
|
.setContentText(
|
||||||
|
applicationContext.getString(
|
||||||
|
R.string.app_update_available_notification_text, versionName
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
val notificationManager = NotificationManagerCompat.from(applicationContext)
|
val notificationManager = NotificationManagerCompat.from(applicationContext)
|
||||||
notificationManager.notify(2000, notificationBuilder.build())
|
notificationManager.notify(2000, notificationBuilder.build())
|
||||||
|
Loading…
Reference in New Issue
Block a user