Skip to content

Commit

Permalink
Merge pull request #92 from matthewvogt/mer-1076
Browse files Browse the repository at this point in the history
[commhistory-daemon] Turn on display for urgent notifications. Contributes to MER#1076
  • Loading branch information
matthewvogt committed Jun 5, 2015
2 parents 6b9cc70 + 2f986b4 commit 9dd3e20
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 8 deletions.
1 change: 1 addition & 0 deletions data/notifications/x-nemo.messaging.im.conf
Expand Up @@ -4,3 +4,4 @@ x-nemo-preview-icon=icon-lock-sms
x-nemo-feedback=chat
x-nemo-priority=120
x-nemo-led-disabled-without-body-and-summary=false
x-nemo-display-on=true
1 change: 1 addition & 0 deletions data/notifications/x-nemo.messaging.mms.conf
Expand Up @@ -4,3 +4,4 @@ x-nemo-preview-icon=icon-lock-sms
x-nemo-feedback=sms
x-nemo-priority=120
x-nemo-led-disabled-without-body-and-summary=false
x-nemo-display-on=true
1 change: 1 addition & 0 deletions data/notifications/x-nemo.messaging.sms.conf
Expand Up @@ -4,3 +4,4 @@ x-nemo-preview-icon=icon-lock-sms
x-nemo-feedback=sms
x-nemo-priority=120
x-nemo-led-disabled-without-body-and-summary=false
x-nemo-display-on=true
1 change: 1 addition & 0 deletions data/notifications/x-nemo.messaging.voicemail-SMS.conf
Expand Up @@ -4,3 +4,4 @@ x-nemo-preview-icon=icon-lock-sms
x-nemo-priority=120
x-nemo-feedback=sms
x-nemo-led-disabled-without-body-and-summary=false
x-nemo-display-on=true
1 change: 1 addition & 0 deletions data/notifications/x-nemo.messaging.voicemail-waiting.conf
Expand Up @@ -5,3 +5,4 @@ x-nemo-user-removable=false
x-nemo-feedback=sms
x-nemo-priority=120
x-nemo-led-disabled-without-body-and-summary=false
x-nemo-display-on=true
1 change: 1 addition & 0 deletions data/notifications/x-nemo.messaging.voicemail.conf
Expand Up @@ -5,3 +5,4 @@ x-nemo-user-removable=false
x-nemo-feedback=sms
x-nemo-priority=120
x-nemo-led-disabled-without-body-and-summary=false
x-nemo-display-on=true
8 changes: 0 additions & 8 deletions src/notificationmanager.cpp
Expand Up @@ -237,14 +237,6 @@ void NotificationManager::showNotification(const CommHistory::Event& event,
notification->setEventToken(event.messageToken());

resolveNotification(notification);

if (event.type() == CommHistory::Event::SMSEvent ||
event.type() == CommHistory::Event::MMSEvent) {
// ask mce to undim the screen
QString mceMethod = QString::fromLatin1(MCE_DISPLAY_ON_REQ);
QDBusMessage msg = QDBusMessage::createMethodCall(MCE_SERVICE, MCE_REQUEST_PATH, MCE_REQUEST_IF, mceMethod);
QDBusConnection::systemBus().call(msg, QDBus::NoBlock);
}
}

void NotificationManager::resolveNotification(PersonalNotification *pn)
Expand Down

0 comments on commit 9dd3e20

Please sign in to comment.