From: dongsug.song Date: Tue, 25 Jul 2017 01:37:42 +0000 (+0900) Subject: Revert "[Tizen] generate exception when garbage collected during animation playing" X-Git-Tag: submit/trunk/20170823.075128~91^2~88 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f69b0a257c270b7e67a751a72a78c099e9a9761a;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git Revert "[Tizen] generate exception when garbage collected during animation playing" This reverts commit 51260f0349f9811693c5b46758cbf9e0a1a340e9. Change-Id: I89b249e990fe30e21f2154a8c4ff61258c699bd2 --- 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.