From: Denis Dolzhenko Date: Thu, 5 Jan 2017 12:55:08 +0000 (+0200) Subject: TSAM-12415 Sound not play when tap to add content X-Git-Tag: submit/tizen_3.0/20170105.134604^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ca22f53680ce6642eb920f82970b705954a9761e;p=profile%2Fmobile%2Fapps%2Fnative%2Fmessage.git TSAM-12415 Sound not play when tap to add content Change-Id: Icd47eed0e179a69ba0bb09fe8c7e88ea06992894 Signed-off-by: Denis Dolzhenko --- diff --git a/CMakeLists.txt b/CMakeLists.txt index d53257bd..a79f4575 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -78,6 +78,7 @@ pkg_check_modules(pkgs REQUIRED calendar-service2 dpm vconf + feedback ) ADD_DEFINITIONS("-DAPP_DIR=\"${PKGDIR}\"") diff --git a/packaging/message.spec b/packaging/message.spec index 70d4c977..ba86465c 100755 --- a/packaging/message.spec +++ b/packaging/message.spec @@ -55,6 +55,7 @@ BuildRequires: pkgconfig(calendar-service2) BuildRequires: pkgconfig(dpm) BuildRequires: pkgconfig(vconf) BuildRequires: pkgconfig(vconf-internal-keys) +BuildRequires: pkgconfig(feedback) %if %TIZEN_2_4_BUILD == 0 BuildRequires: pkgconfig(libtzplatform-config) diff --git a/src/Conversation/Main/View/src/MessageInputPanel.cpp b/src/Conversation/Main/View/src/MessageInputPanel.cpp index 775e1fd8..107a765a 100644 --- a/src/Conversation/Main/View/src/MessageInputPanel.cpp +++ b/src/Conversation/Main/View/src/MessageInputPanel.cpp @@ -22,6 +22,8 @@ #include "TextDecorator.h" #include "Resource.h" +#include + using namespace Msg; #define BUTTON_COLOR 78, 97, 173, 255 @@ -155,6 +157,7 @@ void MessageInputPanel::setListener(IMessageInputPanelListener *l) void MessageInputPanel::onButtonClicked(Evas_Object *obj, void *event_info) { + feedback_play(FEEDBACK_PATTERN_TAP); if (m_pListener) { int id = (int)(intptr_t)evas_object_data_get(obj, buttonIdKey); diff --git a/src/MainApp/MainApp.cpp b/src/MainApp/MainApp.cpp index b316b49f..1f7ebf04 100644 --- a/src/MainApp/MainApp.cpp +++ b/src/MainApp/MainApp.cpp @@ -29,6 +29,7 @@ #include #include #include +#include using namespace Msg; @@ -116,6 +117,7 @@ bool MainApp::onAppCreate() elm_app_base_scale_set(2.6); elm_config_accel_preference_set("3d"); + feedback_initialize(); updateCharacterOrientation(); m_pWindow = new StandardWindow; @@ -134,6 +136,7 @@ void MainApp::onAppTerminate() TRACE; m_pRootController->destroy(); m_pWindow->destroy(); + feedback_deinitialize(); } void MainApp::onAppPause()