Skip to content
This repository has been archived by the owner on Aug 2, 2024. It is now read-only.

Remove deprecated SunflowerImage Glide wrapper in favor of GlideImage #945

Merged
merged 2 commits into from
Jan 10, 2024

Conversation

sabiou
Copy link
Contributor

@sabiou sabiou commented Jan 2, 2024

The SunflowerImage() wrapper was introduced as a workaround for the issue bumptech/glide#4977, and now that the issue has been resolved, there is no need for this wrapper in the codebase.

Other minor changes:

  • Simplifying the expression if (plant != null && isPlanted != null && showSnackbar != null) to if (plant != null && showSnackbar != null) as (isPlanted != null) is always true.

  • Replace deprecated Icons.Filled.ArrowBack with Icons.AutoMirrored.Filled.ArrowBack

… composable.

The SunflowerImage() wrapper was introduced as a workaround for the issue bumptech/glide#4977, and now that the issue has been resolved, there is no need for this wrapper in the codebase.

Others minor changes:

- Simplified expression if (plant != null && isPlanted != null && showSnackbar != null) to if (plant != null && showSnackbar != null) as (isPlanted != null) is always true.
- Replaced deprecated Icons.Filled.ArrowBack with Icons.AutoMirrored.Filled.ArrowBack.
@sabiou sabiou requested a review from a team as a code owner January 2, 2024 20:09
@sabiou sabiou requested a review from mlykotom January 2, 2024 20:09
@arriolac arriolac requested review from arriolac and removed request for mlykotom January 2, 2024 21:08
@sabiou sabiou changed the title Removed deprecated SunflowerImage Glide wrapper in favor of GlideImage Remove deprecated SunflowerImage Glide wrapper in favor of GlideImage Jan 2, 2024
Copy link
Contributor

@arriolac arriolac left a comment

Choose a reason for hiding this comment

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

Thanks! Looks like previews were also broken. I'd like to merge in #946 (which fixes previews) before integrating this

@sabiou
Copy link
Contributor Author

sabiou commented Jan 2, 2024

Thanks! Looks like previews were also broken. I'd like to merge in #946 (which fixes previews) before integrating this

Good. Thank you @arriolac

Copy link
Contributor

@arriolac arriolac left a comment

Choose a reason for hiding this comment

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

LGTM

@arriolac arriolac merged commit 64f7606 into android:main Jan 10, 2024
2 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants