Skip to content

Commit

Permalink
Enable notification lights
Browse files Browse the repository at this point in the history
Resolves #90
  • Loading branch information
tughi committed Jun 15, 2024
1 parent 04d4f98 commit 8dd55ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/main/java/com/tughi/aggregator/Notifications.kt
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ object Notifications {
val notificationManager = context.getSystemService(Context.NOTIFICATION_SERVICE) as NotificationManager

val notificationChannel = NotificationChannel(NOTIFICATION_CHANNEL__MY_FEED, context.getString(R.string.notification_channel__my_feed), NotificationManager.IMPORTANCE_DEFAULT)
notificationChannel.shouldShowLights()
notificationChannel.enableLights(true)
notificationManager.createNotificationChannel(notificationChannel)

for (otherNotificationChannel in notificationManager.notificationChannels) {
Expand Down

0 comments on commit 8dd55ee

Please sign in to comment.