end the call if the user closes the call screen while dialing
This commit is contained in:
parent
f3f62ff074
commit
33b5f6e1a3
|
@ -70,6 +70,17 @@ class CallActivity : SimpleActivity() {
|
||||||
if (proximityWakeLock?.isHeld == true) {
|
if (proximityWakeLock?.isHeld == true) {
|
||||||
proximityWakeLock!!.release()
|
proximityWakeLock!!.release()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (CallManager.getState() == Call.STATE_DIALING) {
|
||||||
|
endCall()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
override fun onBackPressed() {
|
||||||
|
super.onBackPressed()
|
||||||
|
if (CallManager.getState() == Call.STATE_DIALING) {
|
||||||
|
endCall()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun initButtons() {
|
private fun initButtons() {
|
||||||
|
|
Loading…
Reference in New Issue