From 1b9028ba6c36aaeb322aa08ae7c7796cff0ffc24 Mon Sep 17 00:00:00 2001 From: tibbi Date: Thu, 29 Nov 2018 10:57:04 +0100 Subject: [PATCH] tweaking some outgoing call notification handling --- .../contacts/pro/services/DialerCallService.kt | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/contacts/pro/services/DialerCallService.kt b/app/src/main/kotlin/com/simplemobiletools/contacts/pro/services/DialerCallService.kt index 916e00a3..12c95806 100644 --- a/app/src/main/kotlin/com/simplemobiletools/contacts/pro/services/DialerCallService.kt +++ b/app/src/main/kotlin/com/simplemobiletools/contacts/pro/services/DialerCallService.kt @@ -44,17 +44,12 @@ class DialerCallService : Service() { stopForeground(true) stopSelf() } - intent.getBooleanExtra(IS_INCOMING_CALL, false) -> { + intent.extras?.containsKey(CALL_STATUS) == true -> { callNumber = intent.getStringExtra(CALL_NUMBER) callStatus = intent.getIntExtra(CALL_STATUS, Call.STATE_NEW) isIncomingCall = intent.getBooleanExtra(IS_INCOMING_CALL, false) getOtherParticipantsName() } - intent.extras?.containsKey(CALL_STATUS) == true -> { - callStatus = intent.getIntExtra(CALL_STATUS, Call.STATE_NEW) - callNumber = intent.getStringExtra(CALL_NUMBER) - getOtherParticipantsName() - } } return START_STICKY }