|
|
@ -118,13 +118,12 @@ class AndroidNotificationTray
|
|
|
|
if (preferences.shouldMakeNotificationsLed())
|
|
|
|
if (preferences.shouldMakeNotificationsLed())
|
|
|
|
builder.setLights(Color.RED, 1000, 1000)
|
|
|
|
builder.setLights(Color.RED, 1000, 1000)
|
|
|
|
|
|
|
|
|
|
|
|
if(SDK_INT < Build.VERSION_CODES.O) {
|
|
|
|
val snoozeAction = Action(R.drawable.ic_action_snooze,
|
|
|
|
val snoozeAction = Action(R.drawable.ic_action_snooze,
|
|
|
|
context.getString(R.string.snooze),
|
|
|
|
context.getString(R.string.snooze),
|
|
|
|
pendingIntents.snoozeNotification(habit))
|
|
|
|
pendingIntents.snoozeNotification(habit))
|
|
|
|
wearableExtender.addAction(snoozeAction)
|
|
|
|
wearableExtender.addAction(snoozeAction)
|
|
|
|
builder.addAction(snoozeAction)
|
|
|
|
builder.addAction(snoozeAction)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
builder.extend(wearableExtender)
|
|
|
|
builder.extend(wearableExtender)
|
|
|
|
return builder.build()
|
|
|
|
return builder.build()
|
|
|
|