maui
maui copied to clipboard
Android setting Image.Source to null does not remove previous image.
Description
In the attached sample below you should see the image appearing and disappearing every 1 second. However, under Android the image is always visible in spite of the fact that we set "image.Source = null" in code-behind. This is a regression from XF. It appears that the image does not re-render itself when Source is nulled.
Steps to Reproduce
- Compile and run the sample on an Android emulator.
- The Android robot image is visible all the time even when code-behind sets "image.Source = null"
- Running on iOS emulator no image shows at all even though it should.
Link to public reproduction project repository
attachment
Version with bug
6.0.486 (current)
Last version that worked well
Unknown/Other
Affected platforms
iOS, Android
Affected platform versions
Android 12, iOS 15
Did you find any workaround?
no
Relevant log output
No response
https://github.com/dotnet/maui/issues/10165
Closing, as it's a duplicate of #10165 as @janseris mentioned
Duplicate of #10165