Skip to content

Commit

Permalink
fix: do not show notification when call is ended
Browse files Browse the repository at this point in the history
  • Loading branch information
KryptKode committed Sep 24, 2021
1 parent 11c6bc9 commit 3023881
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ class CallService : InCallService() {
private val callListener = object : Call.Callback() {
override fun onStateChanged(call: Call, state: Int) {
super.onStateChanged(call, state)
callNotificationManager.setupNotification()
if(state != Call.STATE_DISCONNECTED){
callNotificationManager.setupNotification()
}
if (state == Call.STATE_ACTIVE) {
callDurationHelper.start()
} else if (state == Call.STATE_DISCONNECTED || state == Call.STATE_DISCONNECTING) {
Expand Down

0 comments on commit 3023881

Please sign in to comment.