1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-21 23:32:51 +00:00

Debug swiping

This commit is contained in:
M66B 2024-11-29 10:09:33 +01:00
parent f938c779f4
commit a8394d2d50

View file

@ -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);
}