mirror of
https://github.com/oxen-io/session-android.git
synced 2023-12-14 02:53:01 +01:00
refactor: use answerCall instead of manual intent building again
This commit is contained in:
parent
9c21cfa7b8
commit
f1783b3f80
|
@ -99,6 +99,7 @@ class WebRtcCallActivity: PassphraseRequiredActionBarActivity() {
|
|||
}
|
||||
if (intent.action == ACTION_PRE_OFFER) {
|
||||
wantsToAnswer = true
|
||||
answerCall() // this will do nothing, except update notification state
|
||||
}
|
||||
if (intent.action == ACTION_FULL_SCREEN_INTENT) {
|
||||
supportActionBar?.setDisplayHomeAsUpEnabled(false)
|
||||
|
@ -119,8 +120,7 @@ class WebRtcCallActivity: PassphraseRequiredActionBarActivity() {
|
|||
wantsToAnswer = true
|
||||
updateControls()
|
||||
}
|
||||
val answerIntent = WebRtcCallService.acceptCallIntent(this)
|
||||
ContextCompat.startForegroundService(this,answerIntent)
|
||||
answerCall()
|
||||
}
|
||||
|
||||
declineCallButton.setOnClickListener {
|
||||
|
|
Loading…
Reference in a new issue