private static void fixRectForAspectRatio(Rect rect, int aspectRatioX, int aspectRatioY) {
    if (aspectRatioX == aspectRatioY && rect.width() != rect.height()) {
      if (rect.height() > rect.width()) {
        rect.bottom -= rect.height() - rect.width();
      } else {
        rect.right -= rect.width() - rect.height();
      }
    }
  }
Fix the given rectangle if it doesn't confirm to aspect ration rule.<br>
Make sure that width and height are equal if 1:1 fixed aspect ratio is requested.
core/src/main/java/com/theartofdev/edmodo/cropper/BitmapUtils.java