Skip to content

Commit

Permalink
remove to set KEY_ROOM_ONE_TO_ONE twice
Browse files Browse the repository at this point in the history
it's set in proceedToCall()

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
  • Loading branch information
mahibi committed Nov 12, 2024
1 parent 79a8c16 commit 49c9b3c
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,6 @@ class CallNotificationActivity : CallBaseActivity() {
binding!!.callAnswerVoiceOnlyView.setOnClickListener {
Log.d(TAG, "accept call (voice only)")
intent.putExtra(KEY_CALL_VOICE_ONLY, true)
intent.putExtra(KEY_ROOM_ONE_TO_ONE, isOneToOneCall)
proceedToCall()
}
binding!!.callAnswerCameraView.setOnClickListener {
Expand All @@ -199,9 +198,7 @@ class CallNotificationActivity : CallBaseActivity() {
startActivity(callIntent)
}

private fun isInCallWithVideo(callFlag: Int): Boolean {
return (callFlag and Participant.InCallFlags.WITH_VIDEO) > 0
}
private fun isInCallWithVideo(callFlag: Int): Boolean = (callFlag and Participant.InCallFlags.WITH_VIDEO) > 0

override fun onStop() {
val notificationManager = NotificationManagerCompat.from(context)
Expand Down

0 comments on commit 49c9b3c

Please sign in to comment.