mirror of
https://github.com/SimpleMobileTools/Simple-Dialer.git
synced 2025-06-05 21:49:23 +02:00
clean up
This commit is contained in:
@ -25,7 +25,7 @@ class CallManager {
|
||||
|
||||
fun reject() {
|
||||
if (call != null) {
|
||||
if (call!!.getStateCompat() == Call.STATE_RINGING) {
|
||||
if (getState() == Call.STATE_RINGING) {
|
||||
call!!.reject(false, null)
|
||||
} else {
|
||||
call!!.disconnect()
|
||||
|
@ -2,7 +2,6 @@ package com.simplemobiletools.dialer.services
|
||||
|
||||
import android.telecom.Call
|
||||
import android.telecom.InCallService
|
||||
import android.util.Log
|
||||
import com.simplemobiletools.dialer.activities.CallActivity
|
||||
import com.simplemobiletools.dialer.extensions.isOutgoing
|
||||
import com.simplemobiletools.dialer.extensions.powerManager
|
||||
@ -15,7 +14,6 @@ class CallService : InCallService() {
|
||||
private val callListener = object : Call.Callback() {
|
||||
override fun onStateChanged(call: Call, state: Int) {
|
||||
super.onStateChanged(call, state)
|
||||
Log.d("CallService", "onStateChanged: $call")
|
||||
if (state != Call.STATE_DISCONNECTED) {
|
||||
callNotificationManager.setupNotification()
|
||||
}
|
||||
|
Reference in New Issue
Block a user