Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] - setOnCropImageCompleteListener does not work

See original GitHub issue
  • Lib Version 3.3.6

Describe the bug setOnCropImageCompleteListener does not work Lambda function never gets called.

To Reproduce use the CropImageView, then: create a Lambda function:

binding.cropImageView.setOnCropImageCompleteListener{ view, result ->
    Log.d("imageComplete", "does this even get called")

notice that it never gets called when moving and scaling the crop region.

Expected behavior Lambda should get called when releasing the cropping rectangle so that the selected region can be automatically refreshed into i.E. a Preview Drawable


Smartphone (please complete the following information):

  • Device: Xiaomi Mix 2S and Pixel 4 Emulator
  • OS: Android 10 MIUI 12.5 and Android 10 with Play Services

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:16 (16 by maintainers)

github_iconTop GitHub Comments

kingspridecommented, Jan 18, 2022

Yeah I think its a misunderstanding. sorry. I’ll come back when I did more debugging.

kingspridecommented, Nov 11, 2021

… I just wanted to add that the zoom gets applied when dragging the cropping rectangle to an edge - maybe this helps finding the root cause 😉

Read more comments on GitHub >

github_iconTop Results From Across the Web

Implementing the Android Image Cropper errors
I found some errors when implementing and doubts where to put the code. I have added this code in the main activity in...
Read more >
QponyDev / Android-Image-Cropper Download - JitPack
By default nothing will happen and the view will be restored empty (if cropping image loaded using bitmap). Added config SaveBitmapToInstanceState to enable ......
Read more >
com.theartofdev.edmodo.cropper.CropImageView java code ...
Sets a Drawable as the content of the CropImageView. setOnSetImageUriCompleteListener. Set the callback to be invoked when image async loading ( # ...
Read more >
Android Image Cropper - CD2H gitForager
For a working implementation, please have a look at the Sample Project ... optional (needed if default theme has no action bar) -->....
Read more >
Online Image Picker: Picasso download With Image. Android ...
Let's open a new Android project, called Picasso Demo. In Android programming, build gradle is always our first task, not UI. Let's add...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found