private int calculateDragSensitivity(){
  int range=MAX_DRAG_SENSITIVITY - MIN_DRAG_SENSITIVITY;
  return Math.round((1 - getDragSensitivity()) * range + MIN_DRAG_SENSITIVITY);
}

private int calculateDragSensitivity ( ) { int range = MAX_DRAG_SENSITIVITY - MIN_DRAG_SENSITIVITY ; return Math . round ( ( 1 - getDragSensitivity ( ) ) * range + MIN_DRAG_SENSITIVITY ) ; }
calculates and returns the distance after which dragging has an effect on the bottom sheet in pixels . the distance depends on the current set drag sensitivity , which corresponds to an internal value range .
