From a8394d2d50ab4c3bf699441039d88a6c0119329d Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 29 Nov 2024 10:09:33 +0100 Subject: [PATCH] Debug swiping --- app/src/main/java/eu/faircode/email/FragmentMessages.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/FragmentMessages.java b/app/src/main/java/eu/faircode/email/FragmentMessages.java index 9c3d5af34f..48dc1c5dd7 100644 --- a/app/src/main/java/eu/faircode/email/FragmentMessages.java +++ b/app/src/main/java/eu/faircode/email/FragmentMessages.java @@ -3259,6 +3259,7 @@ public class FragmentMessages extends FragmentBase @Override public void run() { swiping = false; + Log.i("Swiping ended"); } }; @@ -3266,9 +3267,10 @@ public class FragmentMessages extends FragmentBase public void onSelectedChanged(@Nullable RecyclerView.ViewHolder viewHolder, int actionState) { super.onSelectedChanged(viewHolder, actionState); getMainHandler().removeCallbacks(disableSwiping); - if (actionState == ItemTouchHelper.ACTION_STATE_SWIPE) + if (actionState == ItemTouchHelper.ACTION_STATE_SWIPE) { swiping = true; - else + Log.i("Swiping started"); + } else getMainHandler().postDelayed(disableSwiping, ViewConfiguration.getLongPressTimeout() + 100); }