renaming the Handle variable used at starting calls

This commit is contained in:
tibbi 2020-05-02 13:37:10 +02:00
parent 4a5c2b32a0
commit d740d7f2ea
1 changed files with 2 additions and 2 deletions

View File

@ -46,9 +46,9 @@ class DialerActivity : SimpleActivity() {
@SuppressLint("MissingPermission")
private fun initOutgoingCall() {
try {
getHandleToUse {
getHandleToUse { handle ->
Bundle().apply {
putParcelable(TelecomManager.EXTRA_PHONE_ACCOUNT_HANDLE, it)
putParcelable(TelecomManager.EXTRA_PHONE_ACCOUNT_HANDLE, handle)
putBoolean(TelecomManager.EXTRA_START_CALL_WITH_VIDEO_STATE, false)
putBoolean(TelecomManager.EXTRA_START_CALL_WITH_SPEAKERPHONE, false)
telecomManager.placeCall(callNumber, this)