Skip to content

Commit

Permalink
Reset swipe state if marking already read conversation as read
Browse files Browse the repository at this point in the history
  • Loading branch information
moezbhatti committed Feb 6, 2020
1 parent e47bfb5 commit 86f764a
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -140,7 +140,7 @@ class ConversationItemTouchCallback @Inject constructor(

// This will trigger the animation back to neutral state
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)
}
}
Expand Down

0 comments on commit 86f764a

Please sign in to comment.