From: sung-su.kim Date: Wed, 5 Jul 2017 07:29:20 +0000 (+0900) Subject: Fix Transit.Pause X-Git-Tag: submit/trunk/20170823.075128~110^2~28^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=30be64ea68c0a73858b6d9a025f867d2e17529c1;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git Fix Transit.Pause - TCAPI-2548 - Remove Transit.Pause property - Add Transit.Pause() method - Add Transit.Resume() method Change-Id: I9703ed2922f769c0c08efb9910acb79cf0cd5963 --- diff --git a/src/ElmSharp/ElmSharp/Transit.cs b/src/ElmSharp/ElmSharp/Transit.cs index 2b2dc00..3281b6f 100755 --- a/src/ElmSharp/ElmSharp/Transit.cs +++ b/src/ElmSharp/ElmSharp/Transit.cs @@ -172,21 +172,6 @@ namespace ElmSharp } /// - /// Pause/Resume the transition. - /// - public bool Pause - { - get - { - return Interop.Elementary.elm_transit_paused_get(_handle); - } - set - { - Interop.Elementary.elm_transit_paused_set(_handle, value); - } - } - - /// /// Get the time progression of the animation (a double value between 0.0 and 1.0). /// The value returned is a fraction(current time / total time). /// It represents the progression position relative to the total. @@ -246,6 +231,24 @@ namespace ElmSharp } /// + /// Pause the transition. + /// + public void Pause() + { + if (Interop.Elementary.elm_transit_paused_get(_handle) == false) + Interop.Elementary.elm_transit_paused_set(_handle, true); + } + + /// + /// Resume the transition. + /// + public void Resume() + { + if (Interop.Elementary.elm_transit_paused_get(_handle) == true) + Interop.Elementary.elm_transit_paused_set(_handle, false); + } + + /// /// Get the current chained transit list. /// /// Cannot add the duplicate transit.