Added a comment
Ubuntu's Unity doesn't support persistent notifications and it shows a popup dialog instead :/
This commit is contained in:
parent
bc0b182708
commit
5f0173f469
1 changed files with 2 additions and 2 deletions
|
@ -72,13 +72,13 @@ KNotification* TelephonyPlugin::createNotification(const NetworkPackage& np)
|
||||||
type = QStringLiteral("missedCall");
|
type = QStringLiteral("missedCall");
|
||||||
icon = QStringLiteral("call-start");
|
icon = QStringLiteral("call-start");
|
||||||
content = i18n("Missed call from %1", contactName);
|
content = i18n("Missed call from %1", contactName);
|
||||||
flags |= KNotification::Persistent;
|
flags |= KNotification::Persistent; //Note that in Unity this generates a message box!
|
||||||
} else if (event == QLatin1String("sms")) {
|
} else if (event == QLatin1String("sms")) {
|
||||||
type = QStringLiteral("smsReceived");
|
type = QStringLiteral("smsReceived");
|
||||||
icon = QStringLiteral("mail-receive");
|
icon = QStringLiteral("mail-receive");
|
||||||
QString messageBody = np.get<QString>(QStringLiteral("messageBody"), QLatin1String(""));
|
QString messageBody = np.get<QString>(QStringLiteral("messageBody"), QLatin1String(""));
|
||||||
content = i18n("SMS from %1<br>%2", contactName, messageBody);
|
content = i18n("SMS from %1<br>%2", contactName, messageBody);
|
||||||
flags |= KNotification::Persistent;
|
flags |= KNotification::Persistent; //Note that in Unity this generates a message box!
|
||||||
} else if (event == QLatin1String("talking")) {
|
} else if (event == QLatin1String("talking")) {
|
||||||
return nullptr;
|
return nullptr;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue