Bug 1313363 - NotificationClient: Use BigTextStyle instead of InboxStyle. r=Grisha

There's no reason to use InboxStyle here. We do not add any items to the list.
Currently the content text is truncated aggressively showing only one line of
text. With BigTextStyle we can show a lot more.

MozReview-Commit-ID: 8CQZVHzc7b8

--HG--
extra : rebase_source : c717e0c532d7ee101fac89e12db7961e44e811f7
This commit is contained in:
Sebastian Kaspari 2016-10-28 17:18:52 +02:00
Родитель edd3737449
Коммит e18aec9098
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -147,9 +147,9 @@ public final class NotificationClient implements NotificationListener {
.setContentIntent(contentIntent) .setContentIntent(contentIntent)
.setDeleteIntent(deleteIntent) .setDeleteIntent(deleteIntent)
.setAutoCancel(true) .setAutoCancel(true)
.setStyle(new NotificationCompat.InboxStyle() .setStyle(new NotificationCompat.BigTextStyle()
.addLine(alertText) .bigText(alertText)
.setSummaryText(host)); .setSummaryText(host));
// Fetch icon. // Fetch icon.
if (!imageUrl.isEmpty()) { if (!imageUrl.isEmpty()) {