From 7cb741a7ffc45f9aab9c296586a9cad45265f360 Mon Sep 17 00:00:00 2001 From: cketti Date: Mon, 9 Jan 2023 18:49:34 +0100 Subject: [PATCH] Only mark recent changes as read when dismissing snackbar via swipe --- .../java/com/fsck/k9/ui/messagelist/MessageListFragment.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/ui/legacy/src/main/java/com/fsck/k9/ui/messagelist/MessageListFragment.kt b/app/ui/legacy/src/main/java/com/fsck/k9/ui/messagelist/MessageListFragment.kt index 938f54e20..a099cefdf 100644 --- a/app/ui/legacy/src/main/java/com/fsck/k9/ui/messagelist/MessageListFragment.kt +++ b/app/ui/legacy/src/main/java/com/fsck/k9/ui/messagelist/MessageListFragment.kt @@ -372,7 +372,9 @@ class MessageListFragment : .setAction(R.string.okay_action) { launchRecentChangesActivity() } .addCallback(object : BaseCallback() { override fun onDismissed(transientBottomBar: Snackbar?, event: Int) { - recentChangesViewModel.onRecentChangesHintDismissed() + if (event == DISMISS_EVENT_SWIPE) { + recentChangesViewModel.onRecentChangesHintDismissed() + } } })