summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSung-jae Park <nicesj@nicesj.com>2017-09-27 15:18:41 +0900
committerSung-jae Park <nicesj@nicesj.com>2017-09-27 15:18:41 +0900
commit093e980eeac0cfd3b511d40e0db687df24d6ec67 (patch)
tree8c16afe1260bf44e38d537d8cff727e0a160be28
parent6633e99af796188e456aff4995e57afa2a16ac4b (diff)
downloadmediahub-093e980eeac0cfd3b511d40e0db687df24d6ec67.tar.gz
mediahub-093e980eeac0cfd3b511d40e0db687df24d6ec67.tar.bz2
mediahub-093e980eeac0cfd3b511d40e0db687df24d6ec67.zip
[TPLAPP-3994] Slide show is not terminated.
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>
-rwxr-xr-xTVMediaHub/TVMediaHub.Tizen/Views/ImageViewerSlideShow.xaml.cs7
1 files changed, 7 insertions, 0 deletions
diff --git a/TVMediaHub/TVMediaHub.Tizen/Views/ImageViewerSlideShow.xaml.cs b/TVMediaHub/TVMediaHub.Tizen/Views/ImageViewerSlideShow.xaml.cs
index f9e1d93..3281822 100755
--- a/TVMediaHub/TVMediaHub.Tizen/Views/ImageViewerSlideShow.xaml.cs
+++ b/TVMediaHub/TVMediaHub.Tizen/Views/ImageViewerSlideShow.xaml.cs
@@ -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) =>