modify license, N_SE-35704 : modify longpress issue
authorminkyu kim <imetjade.kim@samsung.com>
Tue, 23 Apr 2013 06:03:09 +0000 (15:03 +0900)
committerminkyu kim <imetjade.kim@samsung.com>
Tue, 23 Apr 2013 06:03:09 +0000 (15:03 +0900)
Change-Id: Iaee7066e1a1129f30d9a95f7928c5ef993431e28

LICENSE.Flora
project/src/SampleLongPressGestureDetectorForm.cpp

index 9c95663..fd90a36 100644 (file)
@@ -1,6 +1,6 @@
 Flora License
 
-Version 1.0, May, 2012
+Version 1.0, April, 2013
 
 http://floralicense.org/license/
 
@@ -67,8 +67,8 @@ on behalf of whom a Contribution has been received by Licensor and
 subsequently incorporated within the Work.
 
 "Tizen Certified Platform" shall mean a software platform that complies
-with the standards set forth in the Compatibility Definition Document
-and passes the Compatibility Test Suite as defined from time to time
+with the standards set forth in the Tizen Compliance Specification
+and passes the Tizen Compliance Tests as defined from time to time
 by the Tizen Technical Steering Group and certified by the Tizen
 Association or its designated agent.
 
index 8452360..8d381b8 100644 (file)
@@ -327,6 +327,24 @@ SampleLongPressGestureDetectorForm::OnTextValueChanged(const Control& source)
                                        }
                                        else
                                        {
+                                               __pTouchArea->RemoveGestureDetector(*__pLongPressGesture);
+                                               __pLongPressGesture->RemoveLongPressGestureEventListener(*this);
+
+                                               if (__pLongPressGesture != null)
+                                               {
+                                                       delete __pLongPressGesture;
+                                                       __pLongPressGesture = null;
+                                               }
+
+                                               __pLongPressGesture = new (std::nothrow) TouchLongPressGestureDetector;
+                                               if (__pLongPressGesture != null)
+                                               {
+                                                       __pLongPressGesture->Construct();
+
+                                                       __pLongPressGesture->AddLongPressGestureEventListener(*this);
+                                                       __pTouchArea->AddGestureDetector(*__pLongPressGesture);
+                                               }
+
                                                r = __pLongPressGesture->SetTouchCount(count);
                                                if (r != E_SUCCESS)
                                                {