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()
|
||||
|
Reference in New Issue
Block a user