Revert "[Tizen] generate exception when garbage collected during animation playing" 80/144080/1
authorminho.sun <minho.sun@samsung.com>
Mon, 14 Aug 2017 07:49:51 +0000 (16:49 +0900)
committerminho.sun <minho.sun@samsung.com>
Mon, 14 Aug 2017 07:49:53 +0000 (16:49 +0900)
This reverts commit 5f38c6151960f62a7577fa5fed98f21236b513c5.

Change-Id: I78700710ecd4c9bcb3b7b8756fa6ae3d98f753f5

Tizen.NUI/src/public/Animation.cs

index 3169ad3..47815a6 100755 (executable)
@@ -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.