Commit 6388605e authored by Andrew den Exter's avatar Andrew den Exter

Merge branch 'jb37970' into 'master'

[notifications] Only hide notifications when the device is locked. Fixes JB#37970

See merge request !14
parents 945bdb1d a4e4fc7c
......@@ -115,7 +115,14 @@ int DeviceLock::automaticLocking() const
bool DeviceLock::showNotifications() const
{
return m_state <= Locked && m_settings->showNotifications > 0;
switch (m_state) {
case Unlocked:
return true;
case Locked:
return m_settings->showNotifications > 0;
default:
return false;
}
}
/*!
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment