mirror of
https://github.com/quik-sms/quik.git
synced 2026-11-22 13:48:52 +01:00
Reset swipe state if marking already read conversation as read
This commit is contained in:
+1
-1
@@ -140,7 +140,7 @@ class ConversationItemTouchCallback @Inject constructor(
|
|||||||
|
|
||||||
// This will trigger the animation back to neutral state
|
// This will trigger the animation back to neutral state
|
||||||
val action = if (direction == ItemTouchHelper.RIGHT) rightAction else leftAction
|
val action = if (direction == ItemTouchHelper.RIGHT) rightAction else leftAction
|
||||||
if (action != Preferences.SWIPE_ACTION_ARCHIVE && action != Preferences.SWIPE_ACTION_READ) {
|
if (action != Preferences.SWIPE_ACTION_ARCHIVE) {
|
||||||
adapter?.notifyItemChanged(viewHolder.adapterPosition)
|
adapter?.notifyItemChanged(viewHolder.adapterPosition)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user