Disable pull-to-refresh on swiping

Refs #148
pull/149/head
M66B 6 years ago
parent 0764e43964
commit 1c3f4ccdb4

@ -759,6 +759,12 @@ public class FragmentMessages extends FragmentBase {
}
}
@Override
public void onSelectedChanged(@Nullable RecyclerView.ViewHolder viewHolder, int actionState) {
super.onSelectedChanged(viewHolder, actionState);
swipeRefresh.setEnabled(pull && actionState != ItemTouchHelper.ACTION_STATE_SWIPE);
}
@Override
public void onSwiped(@NonNull RecyclerView.ViewHolder viewHolder, int direction) {
TupleMessageEx message = getMessage(viewHolder);

Loading…
Cancel
Save