Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: [develop] fix android jank ui when returnImage is true #1298

Merged
merged 3 commits into from
Jan 24, 2025

Conversation

yujune
Copy link

@yujune yujune commented Jan 20, 2025

✨ What's the context?

When returnImage is set to true, android device experiences UI Jank when QR code is detected.

scanner_jank.mp4

🛠 Changes being made

  • Used Coroutine for image processing task.

@yujune yujune changed the title Fix Android Jank UI When returnImage True fix: fix android jank uI when returnImage is true Jan 20, 2025
@yujune yujune changed the title fix: fix android jank uI when returnImage is true fix: fix android jank ui when returnImage is true Jan 20, 2025
Copy link
Collaborator

@navaronbracke navaronbracke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, except for the missing blank lines for readability.

import java.io.ByteArrayOutputStream
import java.io.IOException
import kotlin.math.roundToInt

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you restore the blank line here?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done added back blank line.

@navaronbracke
Copy link
Collaborator

@yujune Can you add a changelog entry for this fix?

@yujune
Copy link
Author

yujune commented Jan 20, 2025

@yujune Can you add a changelog entry for this fix?

I think this changes should be merged into master branch instead. I have create new pr for this #1299

@yujune yujune closed this Jan 20, 2025
@navaronbracke
Copy link
Collaborator

@yujune I think we want this change for the master branch (as a new version 6.0.x hotfix) and for the version 7.0.0 beta.

@navaronbracke navaronbracke reopened this Jan 20, 2025
@navaronbracke navaronbracke changed the title fix: fix android jank ui when returnImage is true fix: [develop] fix android jank ui when returnImage is true Jan 20, 2025
@navaronbracke
Copy link
Collaborator

cc @juliansteenbakker for coordinating this change on dev with the cherry pick on master.

Copy link
Owner

@juliansteenbakker juliansteenbakker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Thanks for your work!

@juliansteenbakker juliansteenbakker merged commit 4009e7f into juliansteenbakker:develop Jan 24, 2025
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants