[NUI] Make ensure ImageView._resourceUrl is latest
authorEunki Hong <eunkiki.hong@samsung.com>
Thu, 7 Dec 2023 16:59:37 +0000 (01:59 +0900)
committerbshsqa <32317749+bshsqa@users.noreply.github.com>
Mon, 11 Dec 2023 06:49:58 +0000 (15:49 +0900)
commit2c47fd681db9fedb64fe3ce4f4ad54fd9c0d0637
tree17b269095f9da2c8b810d44ad016b41d109e8c68
parentae11e1d145a03adc4da828f40c48eb8f2a925bea
[NUI] Make ensure ImageView._resourceUrl is latest

Previous code didn't assume that _resourceUrl value of ImageView was not a latest.

 - If we set ImageView by ```Image``` property, the _resourceUrl was updated when cached map updating.
 - When we try to get ResourceUrl gettor, we ask to cached map always.

But PropertyValue.Get(out string) might spend long time if the URL length is long.
It will make useless string copy, what we can reduce.

Now We make every logic make ensure that _resourceUrl stored valid resource url.
If this is validated, we can reduce some C# - Native networking.

Signed-off-by: Eunki Hong <eunkiki.hong@samsung.com>
src/Tizen.NUI/src/public/BaseComponents/ImageView.cs
src/Tizen.NUI/src/public/BaseComponents/ImageViewBindableProperty.cs