Skip to content

Commit

Permalink
fix detekt
Browse files Browse the repository at this point in the history
  • Loading branch information
saleniuk committed Dec 4, 2024
1 parent fa902fd commit 711b258
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -242,13 +242,14 @@ class CallNotificationBuilder @Inject constructor(
.setVisibility(NotificationCompat.VISIBILITY_PUBLIC)
.addAction(getDeclineCallAction(context, conversationIdString, userIdString))
.addAction(getOpenIncomingCallAction(context, conversationIdString, userIdString))

.setContentIntent(fullScreenIncomingCallPendingIntent(context, conversationIdString, userIdString))
.setDeleteIntent(callNotificationDismissedPendingIntent(context, userIdString, conversationIdString))
.let {
if (asFullScreenIntent) {
it.setFullScreenIntent(fullScreenIncomingCallPendingIntent(context, conversationIdString, userIdString), true)
} else it
} else {
it
}
}
.build()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,12 @@ class CallActivityViewModelTest {

viewModel.switchAccountIfNeeded(UserId("anotherUser", "domain"), arrangement.switchAccountActions)

coVerify(exactly = if (switchedToAnotherAccountCalled) 1 else 0) { arrangement.switchAccountActions.switchedToAnotherAccount() }
coVerify(exactly = if (noOtherAccountToSwitchCalled) 1 else 0) { arrangement.switchAccountActions.noOtherAccountToSwitch() }
coVerify(exactly = if (switchedToAnotherAccountCalled) 1 else 0) {
arrangement.switchAccountActions.switchedToAnotherAccount()
}
coVerify(exactly = if (noOtherAccountToSwitchCalled) 1 else 0) {
arrangement.switchAccountActions.noOtherAccountToSwitch()
}
}

@Test
Expand Down

0 comments on commit 711b258

Please sign in to comment.