Skip to content

Commit 87c5130

Browse files
committed
WIP - linter + fixing build
Signed-off-by: rapterjet2004 <juliuslinus1@gmail.com>
1 parent 058d6bf commit 87c5130

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

app/src/main/java/com/nextcloud/talk/jobs/NotificationWorker.kt

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -607,10 +607,14 @@ class NotificationWorker(context: Context, workerParams: WorkerParameters) : Wor
607607
sendNotification(systemNotificationId, notificationBuilder.build())
608608
}
609609

610+
@Suppress("ReturnCount")
610611
@RequiresApi(Build.VERSION_CODES.R)
611-
fun NotificationCompat.Builder.handleExistingBubble(activeStatusBarNotification: StatusBarNotification, effectiveShortcutId: String): NotificationCompat.Builder {
612+
fun NotificationCompat.Builder.handleExistingBubble(
613+
activeStatusBarNotification: StatusBarNotification,
614+
effectiveShortcutId: String
615+
): NotificationCompat.Builder {
612616
val existingBubble = activeStatusBarNotification.notification.bubbleMetadata
613-
?: return this.addBubbleMetadata(false)
617+
?: return this.addBubbleMetadata(false)
614618

615619
val compatBubble = NotificationCompat.BubbleMetadata.fromPlatform(existingBubble)
616620
?: return this.addBubbleMetadata(existingBubble.isNotificationSuppressed)

0 commit comments

Comments
 (0)