uCrop icon indicating copy to clipboard operation
uCrop copied to clipboard

Xiaomi issue with crop drawable

Open Aeonko opened this issue 2 years ago • 0 comments

On Xiaomi devices default crop drawable is not changing color for dark mode. This issue is most likely due to using .png as drawable. Switching to .svg fixes this issue. It would be nice to have this behavior as default, but for now we can fix it by passing new drawable for it.

val options = UCrop.Options()

    options.setToolbarCropDrawable(R.drawable.ic_check_mark)
    val uCrop = UCrop.of(uriOfImageToCrop, outPutOfCropedImage)
        .withOptions(
            options
        )

    uCrop.start(activity, CROPED_IMAGE)

All other brans are showing correct color for crop drawable

Aeonko avatar Jan 24 '22 13:01 Aeonko