[NUI][API10] Fix dispose timing error for ImageUrl
authorEunki Hong <eunkiki.hong@samsung.com>
Sun, 29 Jan 2023 08:14:03 +0000 (17:14 +0900)
committerEunki Hong <h.pichulia@gmail.com>
Mon, 30 Jan 2023 02:01:24 +0000 (11:01 +0900)
commit5be148bfa864765ef1f70f2513a9e76886b7312a
tree1f0165df48d34a199cf7bbd1a78c2cefb696bb92
parent5231b3739847c2b5dbe6e0f1aa5b357392510e9f
[NUI][API10] Fix dispose timing error for ImageUrl

Since we update ImageView lazy, ImageUrl's lifecycle might not matched
what user think.

```
ImageUrl imageUrl = ~~~.GenerateUrl();
ImageView imageView = new ImageView(imageUrl.ToString());
imageUrl.Dispose(); ///< We should allow this situation.
```

To make scene, We allow to call UpdateImage(); synchoronously
if we use GeneratedUrl().

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