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

Replace Glide with Coil #403

Merged
merged 5 commits into from
Jan 3, 2024
Merged

Replace Glide with Coil #403

merged 5 commits into from
Jan 3, 2024

Conversation

mdrlzy
Copy link
Member

@mdrlzy mdrlzy commented Oct 18, 2023

No description provided.

Comment on lines 118 to 123
if (!subsamplingImageLoadFailed) {
if (ivZoom.isZoomed) {
progress.isVisible = true
ivZoom.isZoomEnabled = false
ivZoom.resetZoom()
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

We can use positive boolean to improve this block of code. See https://testing.googleblog.com/2023/10/improve-readability-with-positive.html

Suggested change
if (!subsamplingImageLoadFailed) {
if (ivZoom.isZoomed) {
progress.isVisible = true
ivZoom.isZoomEnabled = false
ivZoom.resetZoom()
}
if (subsamplingImageLoadSuccess) {
with(ivZoom) {
if (isZoomed) {
isVisible = true
isZoomEnabled = false
resetZoom()
}
}
}

Copy link
Member Author

Choose a reason for hiding this comment

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

This condition should only be met until subsampling image fails. We cannot claim that subsampling image was successfully loaded from very beginning. It hasn't failed or been successful yet. But I'll add comments to make it clear

Copy link
Collaborator

Choose a reason for hiding this comment

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

Okay that makes sense

hieuwu
hieuwu previously approved these changes Oct 23, 2023
@hieuwu hieuwu dismissed their stale review October 23, 2023 13:43

Please double check CI build

Copy link

sonarqubecloud bot commented Nov 7, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@kirillt
Copy link
Member

kirillt commented Nov 15, 2023

@mdrlzy the PR in the arklib-android has been merged:

@kirillt
Copy link
Member

kirillt commented Dec 27, 2023

@mdrlzy any chance to complete this one? 😉

@mdrlzy
Copy link
Member Author

mdrlzy commented Dec 27, 2023

@mdrlzy the PR in the arklib-android has been merged:

Yeah, but there is no new release of arklib-android that includes these changes)

@kirillt
Copy link
Member

kirillt commented Dec 28, 2023

@mdrlzy thanks for letting know, I've published 0.3.4 now:
https://github.com/ARK-Builders/arklib-android/packages/1935613

@mdrlzy
Copy link
Member Author

mdrlzy commented Jan 2, 2024

Test files
Test_GifSvg.zip

Copy link

sonarqubecloud bot commented Jan 2, 2024

Quality Gate Failed Quality Gate failed

Failed conditions

0.0% Coverage on New Code (required ≥ 80%)

See analysis details on SonarCloud

Copy link
Member

@kirillt kirillt left a comment

Choose a reason for hiding this comment

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

Awesome, thanks!

@kirillt kirillt merged commit 17e8a05 into main Jan 3, 2024
5 of 6 checks passed
@kirillt kirillt mentioned this pull request Jan 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants