maui icon indicating copy to clipboard operation
maui copied to clipboard

Android setting Image.Source to null does not remove previous image.

Open philipag opened this issue 3 years ago • 1 comments

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.

layoutbug2.zip

Steps to Reproduce

  1. Compile and run the sample on an Android emulator.
  2. The Android robot image is visible all the time even when code-behind sets "image.Source = null"
  3. 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

philipag avatar Sep 19 '22 20:09 philipag

https://github.com/dotnet/maui/issues/10165

janseris avatar Sep 20 '22 09:09 janseris

Closing, as it's a duplicate of #10165 as @janseris mentioned

rachelkang avatar Sep 23 '22 14:09 rachelkang

Duplicate of #10165

samhouts avatar Sep 23 '22 16:09 samhouts