We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 59ea040 commit ecd071dCopy full SHA for ecd071d
live/src/main/kotlin/dev/ricknout/rugbyranker/live/work/LiveMatchWorker.kt
@@ -244,7 +244,10 @@ open class LiveMatchWorker(
244
245
private fun createCancelPendingIntent() = workManager.createCancelPendingIntent(id)
246
247
- private fun createForegroundInfo(notificationId: Int, notification: Notification): ForegroundInfo {
+ private fun createForegroundInfo(
248
+ notificationId: Int,
249
+ notification: Notification,
250
+ ): ForegroundInfo {
251
return if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
252
ForegroundInfo(notificationId, notification, FOREGROUND_SERVICE_TYPE_DATA_SYNC)
253
} else {
0 commit comments