mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 03:18:06 +00:00
Fixed disable proximity sensor not used for incoming/outgoing call fragments
This commit is contained in:
parent
f4189e4124
commit
df92297d6c
1 changed files with 2 additions and 2 deletions
|
|
@ -561,13 +561,13 @@ class ControlsViewModel : ViewModel() {
|
||||||
Log.i(
|
Log.i(
|
||||||
"[Call Controls] Call is in outgoing state [$state], enabling proximity sensor"
|
"[Call Controls] Call is in outgoing state [$state], enabling proximity sensor"
|
||||||
)
|
)
|
||||||
return true
|
return forceDisableProximitySensor.value == false
|
||||||
}
|
}
|
||||||
Call.State.IncomingEarlyMedia, Call.State.IncomingReceived -> {
|
Call.State.IncomingEarlyMedia, Call.State.IncomingReceived -> {
|
||||||
Log.i(
|
Log.i(
|
||||||
"[Call Controls] Call is in incoming state [$state], enabling proximity sensor"
|
"[Call Controls] Call is in incoming state [$state], enabling proximity sensor"
|
||||||
)
|
)
|
||||||
return true
|
return forceDisableProximitySensor.value == false
|
||||||
}
|
}
|
||||||
else -> { }
|
else -> { }
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue