From: minho.sun Date: Tue, 1 Aug 2017 01:19:55 +0000 (+0900) Subject: Revert "[Tizen] generate exception when garbage collected during animation playing" X-Git-Tag: accepted/tizen/unified/20170809.015329~40 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2586141be0d81d1915456e766004772469176590;p=platform%2Fcore%2Fcsapi%2Fnui.git Revert "[Tizen] generate exception when garbage collected during animation playing" This reverts commit e4603e6ea7d8f463b877fa0255e207c62d29492d. Change-Id: I705a6ba09e93f62110af5e9356189aea114f51b7 --- diff --git a/Tizen.NUI/src/public/Animation.cs b/Tizen.NUI/src/public/Animation.cs index 83b129f..d999316 100755 --- a/Tizen.NUI/src/public/Animation.cs +++ b/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.