Fix author string.

This commit is contained in:
Swapnil Tripathi 2021-08-15 01:45:00 +05:30 committed by Tobias Fella
parent 40cddbc8a5
commit 9e29d7aa42

View File

@ -59,8 +59,9 @@ void MediaSessionClient::setSessionMetadata()
QString authorString = QStringLiteral(""); QString authorString = QStringLiteral("");
if (entry->authors().count() > 0) { if (entry->authors().count() > 0) {
for (auto &author : entry->authors()) { for (auto &author : entry->authors()) {
authorString.append(QStringLiteral(", "));
authorString.append(author->name()); authorString.append(author->name());
(entry->authors().count > 1)
authorString.append(QStringLiteral(", "));
} }
} }
QAndroidJniObject title = QAndroidJniObject::fromString(entry->title()); QAndroidJniObject title = QAndroidJniObject::fromString(entry->title());