Alexandr AndroidDev
Alexandr AndroidDev
fix for issue #50. Idea is first calc crop rect size for one axis, then decrease crop rect size to other axis. After that calc final size with cropScale
Error occurs on https://www.gsmarena.com/oneplus_5t-8912.php cropiwa settings: ``` app:ci_aspect_ratio_h="4" app:ci_aspect_ratio_w="3" app:ci_border_color="@color/colorAccentGreen" app:ci_border_width="4dp" app:ci_crop_scale="0.75" app:ci_crop_shape="rectangle" app:ci_draw_grid="false" app:ci_dynamic_aspect_ratio="false" app:ci_scale_enabled="true" app:ci_translation_enabled="true" ``` Problem in method CropiwaOverlayView>setCropRectAccordingToAspectRatio() ``` boolean calculateFromWidth = aspectRatio.getHeight() < aspectRatio.getWidth() ||...
For example, if you want to init Confetti in some util class on presenters layer, maybe you want to wrote something like this: ``` util class: fun initParticles() = ConfettiManager(params)...