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

Glide DarkMode doesn't work #4515

Open
cherimo opened this issue Mar 6, 2021 · 0 comments
Open

Glide DarkMode doesn't work #4515

cherimo opened this issue Mar 6, 2021 · 0 comments

Comments

@cherimo
Copy link

cherimo commented Mar 6, 2021

I am using the lastest Glide (Kotlin)Version within Android11.
When I load the image with the following code...

...
        var imageOptions: RequestOptions = RequestOptions()
            .diskCacheStrategy(DiskCacheStrategy.NONE)
            .skipMemoryCache(true)
            .override(200, 200)
            .transform(RoundedCorners(10),CenterCrop())

            Glide.with(itemView.image.context)
                .load(decodedImage) //decodedImage is a Bitmap
                .apply(imageOptions)
                .into(itemView.image)
...

The images works fine. But when I view the app in Dark Mode the images are disappeared.
I am familiar with this solution #3778 but this works only with Drawable image and not Bitmap, is there any solution to make the image visible in Night Mode?

Thank you in advance.

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

No branches or pull requests

1 participant