Skip to content

Commit

Permalink
Remove now-unsupported background from wear notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
ccomeaux committed Sep 12, 2019
1 parent 62d39ea commit 28623fb
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,6 @@ abstract class SyncUploadTask(application: BggApplication, service: BggService,
if (action != null) {
builder.addAction(action)
}
if (largeIcon != null) {
builder.extend(NotificationCompat.WearableExtender().setBackground(largeIcon))
}
NotificationUtils.notify(context, notificationMessageTag, id, builder)
showNotificationSummary()
}
Expand All @@ -90,8 +87,7 @@ abstract class SyncUploadTask(application: BggApplication, service: BggService,
.setGroup(notificationMessageTag)
.setGroupAlertBehavior(NotificationCompat.GROUP_ALERT_SUMMARY)
.setGroupSummary(true)
val messageCount = notificationMessages.size
when (messageCount) {
when (val messageCount = notificationMessages.size) {
0 -> return
1 -> builder.setContentText(notificationMessages[0])
else -> {
Expand Down

0 comments on commit 28623fb

Please sign in to comment.