Skip to content

Commit

Permalink
[devicelock] Don't lock the device immediately on screen blank during…
Browse files Browse the repository at this point in the history
… a call. Fixes JB#38452
  • Loading branch information
adenexter committed May 3, 2017
1 parent 8837598 commit 73bd793
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nemo-devicelock/host/mcedevicelock.cpp
Expand Up @@ -211,7 +211,7 @@ bool MceDeviceLock::getRequiredLockState()
if (automaticLocking() < 0) {
/* Device locking is disabled */
locked = false;
} else if (automaticLocking() == 0 && !m_displayOn) {
} else if (automaticLocking() == 0 && !m_displayOn && !m_callActive) {
/* Display is off in immediate lock mode */
locked = true;
}
Expand Down

0 comments on commit 73bd793

Please sign in to comment.