Make swiping out easier (#7232)
This commit is contained in:
parent
c51656f8e7
commit
a3cd74d5ae
|
@ -222,7 +222,7 @@ public class SwipeActions extends ItemTouchHelper.SimpleCallback implements Life
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public float getSwipeThreshold(@NonNull RecyclerView.ViewHolder viewHolder) {
|
public float getSwipeThreshold(@NonNull RecyclerView.ViewHolder viewHolder) {
|
||||||
return swipeOutEnabled ? 0.6f : 1.0f;
|
return swipeOutEnabled ? super.getSwipeThreshold(viewHolder) : 1.0f;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue