[TPLAPP-3994] Slide show is not terminated. 92/152792/1
authorSung-jae Park <nicesj@nicesj.com>
Wed, 27 Sep 2017 06:18:41 +0000 (15:18 +0900)
committerSung-jae Park <nicesj@nicesj.com>
Wed, 27 Sep 2017 06:18:41 +0000 (15:18 +0900)
In case of the Dissolve effect, the slide show was not terminated.
This patch terminates the slide show after displaying the last image.

Change-Id: I4acc520f228b04fb7363c719ee48e32b80cf8914
Signed-off-by: Sung-jae Park <nicesj@nicesj.com>
TVMediaHub/TVMediaHub.Tizen/Views/ImageViewerSlideShow.xaml.cs

index f9e1d93..3281822 100755 (executable)
@@ -213,6 +213,13 @@ namespace TVMediaHub.Tizen.Views
         /// <param name="delay">A delay time</param>
         private void DissolveSlideShowAnimation(int index, uint delay)
         {
+            if (index > imageList.Count)
+            {
+                App.AppMainPage.PopAsync();
+
+                return;
+            }
+
             DbgPort.D("Step 1");
             this.Animate("SlideAnimation",
                 (v) =>