TSAM-12415 Sound not play when tap to add content 79/108779/1 submit/tizen/20170106.112729
authorDenis Dolzhenko <d.dolzhenko@samsung.com>
Thu, 5 Jan 2017 12:55:08 +0000 (14:55 +0200)
committerDenis Dolzhenko <d.dolzhenko@samsung.com>
Thu, 5 Jan 2017 13:41:44 +0000 (05:41 -0800)
Change-Id: Icd47eed0e179a69ba0bb09fe8c7e88ea06992894
Signed-off-by: Denis Dolzhenko <d.dolzhenko@samsung.com>
(cherry picked from commit ca22f53680ce6642eb920f82970b705954a9761e)

CMakeLists.txt
packaging/message.spec
src/Conversation/Main/View/src/MessageInputPanel.cpp
src/MainApp/MainApp.cpp

index d53257bd41f9feb72414bcf95759575188d47755..a79f457501c7fc03659452c069bf9790abff05a9 100644 (file)
@@ -78,6 +78,7 @@ pkg_check_modules(pkgs REQUIRED
             calendar-service2
             dpm
             vconf
+            feedback
 )
 
 ADD_DEFINITIONS("-DAPP_DIR=\"${PKGDIR}\"")
index 70d4c97742f900dece78a4c3a93c7c2635fb6648..ba86465cae035ea59b33d5b6c4d58bb0c4a08d11 100755 (executable)
@@ -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)
index 775e1fd8345c45c4029370eba2a22e171f3dafad..107a765ae7875275a614ba16a34f681a8e8e640b 100644 (file)
@@ -22,6 +22,8 @@
 #include "TextDecorator.h"
 #include "Resource.h"
 
+#include <feedback.h>
+
 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);
index b316b49f080fb55eb6fc722f6e84285b494119bb..1f7ebf04e5cbab3176b63188e55f7b1df8f18e45 100644 (file)
@@ -29,6 +29,7 @@
 #include <stdlib.h>
 #include <system_settings.h>
 #include <utils_i18n_ulocale.h>
+#include <feedback.h>
 
 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()