From f3ebbc3c9e0999074ffae46740981e56bd2417cd Mon Sep 17 00:00:00 2001 From: Mariotaku Lee Date: Sun, 19 Mar 2017 16:35:19 +0800 Subject: [PATCH] fixed dm notification not clickable #730 --- .../org/mariotaku/twidere/util/ContentNotificationManager.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/twidere/src/main/kotlin/org/mariotaku/twidere/util/ContentNotificationManager.kt b/twidere/src/main/kotlin/org/mariotaku/twidere/util/ContentNotificationManager.kt index 1e94f274b..52c5e680e 100644 --- a/twidere/src/main/kotlin/org/mariotaku/twidere/util/ContentNotificationManager.kt +++ b/twidere/src/main/kotlin/org/mariotaku/twidere/util/ContentNotificationManager.kt @@ -282,6 +282,8 @@ class ContentNotificationManager( messageSum) builder.setTicker(notificationTitle) builder.setContentTitle(notificationTitle) + builder.setContentIntent(getContentIntent(context, CustomTabType.DIRECT_MESSAGES, + NotificationType.DIRECT_MESSAGES, accountKey, 0)) val remaining = cur.forEachRow(5) { cur, pos -> val conversation = indices.newObject(cur) if (conversation.notificationDisabled) return@forEachRow false