Add to check DA profile in the flick gesture with three fingers 04/289604/6 accepted/tizen/6.0/unified/20230310.120531 submit/tizen_6.0/20230310.092225
authorSeoyeon Kim <seoyeon2.kim@samsung.com>
Fri, 10 Mar 2023 06:46:21 +0000 (15:46 +0900)
committerSeoyeon Kim <seoyeon2.kim@samsung.com>
Fri, 10 Mar 2023 09:16:05 +0000 (18:16 +0900)
- On Tizen 6.0, three fingers flick gestures do not work at all.

Change-Id: I04e904ec38dbbabec2cf52fcfb5c63a656303cf1
Signed-off-by: Seoyeon Kim <seoyeon2.kim@samsung.com>
CMakeLists.txt
packaging/org.tizen.screen-reader.spec
src/navigator.c

index 6fb7b09191b7bdb0724f08c8b5df751a12e04a45..852da4842fe8347ad1988202fb8ee0f1455be44d 100755 (executable)
@@ -50,6 +50,10 @@ ELSE()
     ADD_DEFINITIONS("-DSCREEN_READER_TV")
 ENDIF()
 
+IF(ENABLE_DA_PROFILE)
+    ADD_DEFINITIONS("-DSCREEN_READER_DA")
+ENDIF()
+
 MESSAGE(STATUS "using wayland")
 SET(CONDITIONAL_PACKAGES ${CONDITIONAL_PACKAGES} "ecore-wayland")
 
index f66cdd655ca09b3b9353efee4f52207b061ab688..9f57c08380f779ff46f39c8d6cb52d4b54936334 100755 (executable)
@@ -95,7 +95,11 @@ popd
         export SEC_FEATURE_TAPI_ENABLE="1"
         export CFLAGS+=" -DELM_ACCESS_KEYBOARD"
 
-cmake . -DCMAKE_INSTALL_PREFIX="%{AppDir}" \
+cmake . \
+%if 0%{?_with_da_profile:1}
+        -DENABLE_DA_PROFILE=ON \
+%endif
+        -DCMAKE_INSTALL_PREFIX="%{AppDir}" \
         -DCMAKE_TARGET="%{Exec}" \
         -DCMAKE_PACKAGE="%{name}" \
         -DTZ_SYS_RO_APP=%{TZ_SYS_RO_APP} \
index a7e75829fd6308ae91d6482131dd2a0add3b0355..5403c94d0b7084ae9724a1561f251106a8fcd175 100644 (file)
@@ -2424,12 +2424,18 @@ TIZEN_PROD_STATIC void on_gesture_detected(void *data, const Eldbus_Message *msg
                _review_from_current(nd);
                break;
        case THREE_FINGERS_FLICK_DOWN:
+       // Add DA profile so that three fingers flick gesture does not work only in fhub
+#ifndef SCREEN_READER_DA
                granularity_read_type_set(EINA_FALSE);
                granularity_read_ui_popup_show();
+#endif
                break;
        case THREE_FINGERS_FLICK_UP:
+       // Add DA profile so that three fingers flick gesture does not work only in fhub
+#ifndef SCREEN_READER_DA
                granularity_read_type_set(EINA_TRUE);
                granularity_read_ui_popup_show();
+#endif
                break;
        case ONE_FINGER_FLICK_LEFT_RETURN:
                _direct_scroll_back(nd);