tweaking some outgoing call notification handling

This commit is contained in:
tibbi 2018-11-29 10:57:04 +01:00
parent 6fad2733af
commit 1b9028ba6c
1 changed files with 1 additions and 6 deletions

View File

@ -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
}