From a4505d6048c0af68c867881bc092204163bc9a0b Mon Sep 17 00:00:00 2001 From: Janne Koschinski <janne@kuschku.de> Date: Tue, 27 Nov 2018 17:18:47 +0100 Subject: [PATCH] Use lights for old notifications and allow smart replies --- .../quasseldroid/service/QuasseldroidNotificationManager.kt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/de/kuschku/quasseldroid/service/QuasseldroidNotificationManager.kt b/app/src/main/java/de/kuschku/quasseldroid/service/QuasseldroidNotificationManager.kt index ac7f01560..821b2b207 100644 --- a/app/src/main/java/de/kuschku/quasseldroid/service/QuasseldroidNotificationManager.kt +++ b/app/src/main/java/de/kuschku/quasseldroid/service/QuasseldroidNotificationManager.kt @@ -87,7 +87,7 @@ class QuasseldroidNotificationManager @Inject constructor(private val context: C NotificationManager.IMPORTANCE_DEFAULT ).apply { setSound(null, null) - enableLights(false) + enableLights(true) enableVibration(false) lightColor = context.getColorCompat(R.color.colorPrimary) lockscreenVisibility = Notification.VISIBILITY_PRIVATE @@ -219,7 +219,9 @@ class QuasseldroidNotificationManager @Inject constructor(private val context: C 0, translatedLocale.getString(R.string.label_reply), replyPendingIntent - ).addRemoteInput(remoteInput).build() + ).addRemoteInput(remoteInput) + .setAllowGeneratedReplies(true) + .build() ) } } -- GitLab