From 4b5d7bbfa4adf144c6811c3ef76f7551f966dc0d Mon Sep 17 00:00:00 2001 From: junitas Date: Tue, 20 Feb 2018 21:28:15 -0500 Subject: [PATCH] Ignore swipe events for ConversationListItemInboxZero Fixes #7423 --- src/org/thoughtcrime/securesms/ConversationListFragment.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/org/thoughtcrime/securesms/ConversationListFragment.java b/src/org/thoughtcrime/securesms/ConversationListFragment.java index 5fc4846ac4..c392f7ff9a 100644 --- a/src/org/thoughtcrime/securesms/ConversationListFragment.java +++ b/src/org/thoughtcrime/securesms/ConversationListFragment.java @@ -484,6 +484,7 @@ public class ConversationListFragment extends Fragment @SuppressLint("StaticFieldLeak") @Override public void onSwiped(RecyclerView.ViewHolder viewHolder, int direction) { + if (viewHolder.itemView instanceof ConversationListItemInboxZero) return; final long threadId = ((ConversationListItem)viewHolder.itemView).getThreadId(); final int unreadCount = ((ConversationListItem)viewHolder.itemView).getUnreadCount(); @@ -541,6 +542,7 @@ public class ConversationListFragment extends Fragment float dX, float dY, int actionState, boolean isCurrentlyActive) { + if (viewHolder.itemView instanceof ConversationListItemInboxZero) return; if (actionState == ItemTouchHelper.ACTION_STATE_SWIPE) { View itemView = viewHolder.itemView; Paint p = new Paint();