mirror of
https://github.com/SimpleMobileTools/Simple-Contacts.git
synced 2025-02-17 03:51:03 +01:00
hang up on Back press only at outgoing calls
This commit is contained in:
parent
8be55a4be1
commit
758799b87c
@ -97,7 +97,7 @@ class DialerActivity : SimpleActivity(), SensorEventListener {
|
|||||||
|
|
||||||
override fun onBackPressed() {
|
override fun onBackPressed() {
|
||||||
super.onBackPressed()
|
super.onBackPressed()
|
||||||
if (!isCallActive) {
|
if (!isCallActive && !isIncomingCall) {
|
||||||
hangUp()
|
hangUp()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user