mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-21 23:32:51 +00:00
Debug swiping
This commit is contained in:
parent
f938c779f4
commit
a8394d2d50
1 changed files with 4 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue