[NUI] Remove old frame range if we set marker + Minor fix up when marker invalid
authorEunki Hong <eunkiki.hong@samsung.com>
Tue, 14 Nov 2023 15:39:16 +0000 (00:39 +0900)
committerJaehyun Cho <jaehyun0cho@gmail.com>
Fri, 8 Mar 2024 00:50:30 +0000 (09:50 +0900)
commit57a4d6d8abaa286fa290cb0c73efbeed59bde6c0
tree455a43da9fa9f5683003fbbb8d2b216228fcfe66
parent11a6b2fbc6f47cdf8e9383fa496339c604822656
[NUI] Remove old frame range if we set marker + Minor fix up when marker invalid

LottieAnimationView cache both frame range as int, and marker.
But two API set same property - PlayRange.

So if some code like below thing was not working well

```
  // Let "marker" frame range is 10~20

  lottieView.SetMinMaxFrame(30, 40); // play range become 30~40
  lottieView.SetMinMaxFrameByMarker(marker); // play range become 10~20
  lottieView.SetMinMaxFrame(30, 40); // play range need to be 30~40 again, but it didn't due to the cache.
```

To avoid like above case, let we clean cache explicit parameter.

Also, Let we add some more error check if app use invalid marker
(Lottie file not loaded, or marker is invalid.)

In this case, let we just follow minMaxSetTypes.NotSetByUser logic then.

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