mirror of
https://github.com/FossifyOrg/Contacts.git
synced 2026-02-02 11:42:14 -05:00
end the call if the user closes the call screen while dialing
This commit is contained in:
@@ -70,6 +70,17 @@ class CallActivity : SimpleActivity() {
|
||||
if (proximityWakeLock?.isHeld == true) {
|
||||
proximityWakeLock!!.release()
|
||||
}
|
||||
|
||||
if (CallManager.getState() == Call.STATE_DIALING) {
|
||||
endCall()
|
||||
}
|
||||
}
|
||||
|
||||
override fun onBackPressed() {
|
||||
super.onBackPressed()
|
||||
if (CallManager.getState() == Call.STATE_DIALING) {
|
||||
endCall()
|
||||
}
|
||||
}
|
||||
|
||||
private fun initButtons() {
|
||||
|
||||
Reference in New Issue
Block a user