mirror of
https://github.com/nextcloud/talk-android.git
synced 2024-11-29 18:08:58 +03:00
fix to open calls as voice only when user clicked on voice button
Before this fix, KEY_CALL_VOICE_ONLY was not included in the intent extras so call always started as videocall Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
parent
ea02248247
commit
ca65995f84
1 changed files with 4 additions and 4 deletions
|
@ -31,12 +31,12 @@ import com.nextcloud.talk.extensions.loadUserAvatar
|
||||||
import com.nextcloud.talk.models.json.participants.Participant
|
import com.nextcloud.talk.models.json.participants.Participant
|
||||||
import com.nextcloud.talk.users.UserManager
|
import com.nextcloud.talk.users.UserManager
|
||||||
import com.nextcloud.talk.utils.ApiUtils
|
import com.nextcloud.talk.utils.ApiUtils
|
||||||
import com.nextcloud.talk.utils.SpreedFeatures
|
import com.nextcloud.talk.utils.CapabilitiesUtil.hasSpreedFeatureCapability
|
||||||
import com.nextcloud.talk.utils.NotificationUtils
|
import com.nextcloud.talk.utils.NotificationUtils
|
||||||
|
import com.nextcloud.talk.utils.SpreedFeatures
|
||||||
import com.nextcloud.talk.utils.bundle.BundleKeys
|
import com.nextcloud.talk.utils.bundle.BundleKeys
|
||||||
import com.nextcloud.talk.utils.bundle.BundleKeys.KEY_CALL_VOICE_ONLY
|
import com.nextcloud.talk.utils.bundle.BundleKeys.KEY_CALL_VOICE_ONLY
|
||||||
import com.nextcloud.talk.utils.bundle.BundleKeys.KEY_ROOM_TOKEN
|
import com.nextcloud.talk.utils.bundle.BundleKeys.KEY_ROOM_TOKEN
|
||||||
import com.nextcloud.talk.utils.CapabilitiesUtil.hasSpreedFeatureCapability
|
|
||||||
import okhttp3.Cache
|
import okhttp3.Cache
|
||||||
import java.io.IOException
|
import java.io.IOException
|
||||||
import javax.inject.Inject
|
import javax.inject.Inject
|
||||||
|
@ -174,12 +174,12 @@ class CallNotificationActivity : CallBaseActivity() {
|
||||||
private fun initClickListeners() {
|
private fun initClickListeners() {
|
||||||
binding!!.callAnswerVoiceOnlyView.setOnClickListener {
|
binding!!.callAnswerVoiceOnlyView.setOnClickListener {
|
||||||
Log.d(TAG, "accept call (voice only)")
|
Log.d(TAG, "accept call (voice only)")
|
||||||
intent.extras!!.putBoolean(KEY_CALL_VOICE_ONLY, true)
|
intent.putExtra(KEY_CALL_VOICE_ONLY, true)
|
||||||
proceedToCall()
|
proceedToCall()
|
||||||
}
|
}
|
||||||
binding!!.callAnswerCameraView.setOnClickListener {
|
binding!!.callAnswerCameraView.setOnClickListener {
|
||||||
Log.d(TAG, "accept call (with video)")
|
Log.d(TAG, "accept call (with video)")
|
||||||
intent.extras!!.putBoolean(KEY_CALL_VOICE_ONLY, false)
|
intent.putExtra(KEY_CALL_VOICE_ONLY, false)
|
||||||
proceedToCall()
|
proceedToCall()
|
||||||
}
|
}
|
||||||
binding!!.hangupButton.setOnClickListener { hangup() }
|
binding!!.hangupButton.setOnClickListener { hangup() }
|
||||||
|
|
Loading…
Reference in a new issue