зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
edd3737449
Коммит
e18aec9098
|
@ -147,9 +147,9 @@ public final class NotificationClient implements NotificationListener {
|
|||
.setContentIntent(contentIntent)
|
||||
.setDeleteIntent(deleteIntent)
|
||||
.setAutoCancel(true)
|
||||
.setStyle(new NotificationCompat.InboxStyle()
|
||||
.addLine(alertText)
|
||||
.setSummaryText(host));
|
||||
.setStyle(new NotificationCompat.BigTextStyle()
|
||||
.bigText(alertText)
|
||||
.setSummaryText(host));
|
||||
|
||||
// Fetch icon.
|
||||
if (!imageUrl.isEmpty()) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче