TSAM-12415 Sound not play when tap to add content 14/108714/3 submit/tizen_3.0/20170105.134604
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:12:27 +0000 (15:12 +0200)
Change-Id: Icd47eed0e179a69ba0bb09fe8c7e88ea06992894
Signed-off-by: Denis Dolzhenko <d.dolzhenko@samsung.com>
CMakeLists.txt
packaging/message.spec
src/Conversation/Main/View/src/MessageInputPanel.cpp
src/MainApp/MainApp.cpp

index d53257b..a79f457 100644 (file)
@@ -78,6 +78,7 @@ pkg_check_modules(pkgs REQUIRED
             calendar-service2
             dpm
             vconf
+            feedback
 )
 
 ADD_DEFINITIONS("-DAPP_DIR=\"${PKGDIR}\"")
index 70d4c97..ba86465 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 775e1fd..107a765 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 b316b49..1f7ebf0 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()