Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix handling of device lock on non-NEMO devices
Previous MR caused incoming and outgoing calls in LuneOS not to work properly. This addresses it.

Signed-off-by: Herman van Hazendonk <github.com@herrie.org>
  • Loading branch information
Herrie82 committed Aug 12, 2019
1 parent ee588f9 commit 0a212a8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/voicecallmanager.cpp
Expand Up @@ -339,13 +339,11 @@ void VoiceCallManager::onVoiceCallAdded(AbstractVoiceCallHandler *handler)
#ifdef WITH_NEMO_DEVICELOCK
if (!handler->isEmergency()
&& d->deviceLock.state() == NemoDeviceLock::DeviceLock::ManagerLockout) {
#else
if (!handler->isEmergency()) {
#endif
handler->hangup();
return;

}
#endif

//AudioCallPolicyProxy *pHandler = new AudioCallPolicyProxy(handler, this);
d->voiceCalls.insert(handler->handlerId(), handler);
Expand Down

0 comments on commit 0a212a8

Please sign in to comment.