From 9209b7d5bd23d05cebaf0ffc1b77e39525bc63cf Mon Sep 17 00:00:00 2001 From: Raquel Medina Date: Thu, 6 Aug 2020 14:22:02 +0200 Subject: fix recent call displayed direction The existing parser would only successfully obtain pbap call direction data from iphone devices, this patch extends the filter to read the call direction from android devices too. Bug-AGL: SPEC-3537 Signed-off-by: Raquel Medina Change-Id: Ia5622d9ef5ffe8de96bb09c1f7f58a701b7554bf --- pbap/pbap.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pbap/pbap.cpp b/pbap/pbap.cpp index f92139b..a3bde48 100644 --- a/pbap/pbap.cpp +++ b/pbap/pbap.cpp @@ -234,9 +234,10 @@ void Pbap::updateCalls(QJsonArray vcards) name = number; } - type = entry.value("type").toString(); - datetime = entry.value("timestamp").toString(); + QStringList typelist = entry.value("type").toString().split(QRegExp("=")); + type = typelist.takeLast(); + datetime = entry.value("timestamp").toString(); // Convert the PBAP date/time to ISO 8601 format datetime.insert(4, '-'); datetime.insert(7, '-'); -- cgit 1.2.3-korg