From f69b0a257c270b7e67a751a72a78c099e9a9761a Mon Sep 17 00:00:00 2001 From: "dongsug.song" Date: Tue, 25 Jul 2017 10:37:42 +0900 Subject: [PATCH] Revert "[Tizen] generate exception when garbage collected during animation playing" This reverts commit 51260f0349f9811693c5b46758cbf9e0a1a340e9. Change-Id: I89b249e990fe30e21f2154a8c4ff61258c699bd2 --- src/Tizen.NUI/src/public/Animation.cs | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) diff --git a/src/Tizen.NUI/src/public/Animation.cs b/src/Tizen.NUI/src/public/Animation.cs index 4f92f82..d999316 100755 --- a/src/Tizen.NUI/src/public/Animation.cs +++ b/src/Tizen.NUI/src/public/Animation.cs @@ -53,29 +53,12 @@ namespace Tizen.NUI { return; } + if(type == DisposeTypes.Explicit) { //Called by User //Release your own managed resources here. //You should release all of your own disposable objects here. - NUILog.Debug("Animation.Dispose(Explicit)! GetState=" + this.GetState()); - if(this.GetState() != States.Stopped) - { - this.Clear(); - this.Reset(); - NUILog.Error("Now Animation is playing! Clear and Reset here!"); - } - } - else if(type == DisposeTypes.Implicit) - { - NUILog.Debug("Animation.Dispose(Implicit)! GetState=" + this.GetState()); - if(this.GetState() != States.Stopped) - { - this.Clear(); - this.Reset(); - NUILog.Error("Now Animation is playing! Clear and Reset here!"); - throw new System.InvalidOperationException("Animation Instance should not be disposed until getting Finished event. Should be a global variable"); - } } //Release your own unmanaged resources here. -- 2.7.4