mirror of
https://github.com/SimpleMobileTools/Simple-Dialer.git
synced 2025-02-19 13:00:37 +01:00
do not initiate the proximity sensor at incoming call ringing
This commit is contained in:
parent
42b58a52a5
commit
e592a53316
@ -69,7 +69,6 @@ class CallActivity : SimpleActivity() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
addLockScreenFlags()
|
addLockScreenFlags()
|
||||||
initProximitySensor()
|
|
||||||
|
|
||||||
CallManager.registerCallback(callCallback)
|
CallManager.registerCallback(callCallback)
|
||||||
updateCallState(CallManager.getState())
|
updateCallState(CallManager.getState())
|
||||||
@ -248,6 +247,7 @@ class CallActivity : SimpleActivity() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun initOutgoingCallUI() {
|
private fun initOutgoingCallUI() {
|
||||||
|
initProximitySensor()
|
||||||
incoming_call_holder.beGone()
|
incoming_call_holder.beGone()
|
||||||
ongoing_call_holder.beVisible()
|
ongoing_call_holder.beVisible()
|
||||||
}
|
}
|
||||||
@ -257,6 +257,7 @@ class CallActivity : SimpleActivity() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun callStarted() {
|
private fun callStarted() {
|
||||||
|
initProximitySensor()
|
||||||
incoming_call_holder.beGone()
|
incoming_call_holder.beGone()
|
||||||
ongoing_call_holder.beVisible()
|
ongoing_call_holder.beVisible()
|
||||||
try {
|
try {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user