Call notifications now show 'unknown number' instead of nothing when receiving a private call
This commit is contained in:
parent
ee7f6b0c6d
commit
d48b8f145b
1 changed files with 4 additions and 3 deletions
|
@ -34,15 +34,16 @@ KNotification* NotificationPackageInterface::createNotification(const QString& d
|
||||||
if (npType == "ringing") {
|
if (npType == "ringing") {
|
||||||
type = "callReceived";
|
type = "callReceived";
|
||||||
icon = "call-start";
|
icon = "call-start";
|
||||||
content = "Incoming call from " + np.get<QString>("phoneNumber");
|
QString number =
|
||||||
|
content = "Incoming call from " + np.get<QString>("phoneNumber","unknown number");
|
||||||
} else if (npType == "missedCall") {
|
} else if (npType == "missedCall") {
|
||||||
type = "missedCall";
|
type = "missedCall";
|
||||||
icon = "call-start";
|
icon = "call-start";
|
||||||
content = "Missed call from " + np.get<QString>("phoneNumber");
|
content = "Missed call from " + np.get<QString>("phoneNumber","unknown number");
|
||||||
} else if (npType == "sms") {
|
} else if (npType == "sms") {
|
||||||
type = "smsReceived";
|
type = "smsReceived";
|
||||||
icon = "mail-receive";
|
icon = "mail-receive";
|
||||||
content = "SMS received from " + np.get<QString>("phoneNumber");
|
content = "SMS received from " + np.get<QString>("phoneNumber","unknown number");
|
||||||
} else if (npType == "battery") {
|
} else if (npType == "battery") {
|
||||||
type = "battery100";
|
type = "battery100";
|
||||||
icon = "battery-100";
|
icon = "battery-100";
|
||||||
|
|
Loading…
Reference in a new issue