TSAM-11670 Sound not play after tap on conv and thread items. 37/105137/1 submit/tizen_3.0/20161215.142953
authorDenis Dolzhenko <d.dolzhenko@samsung.com>
Thu, 15 Dec 2016 13:44:29 +0000 (15:44 +0200)
committerDenis Dolzhenko <d.dolzhenko@samsung.com>
Thu, 15 Dec 2016 13:44:29 +0000 (15:44 +0200)
Change-Id: I2d6aa43402beeeb332ab5189704adea5d47b718c
Signed-off-by: Denis Dolzhenko <d.dolzhenko@samsung.com>
res/edje/conv_genlist_theme.edc
res/edje/macros.inl
res/edje/thread_genlist_theme.edc

index 528cd0b53f6cc3206ebfe86f5568fa01b689660e..e899ea7e3b0f6a12b7264675e63eee107aee83ad 100755 (executable)
@@ -47,6 +47,10 @@ collections {
 
     BASE_SCALE;
 
+plugins {
+    TOUCH_SOUND_PLUGIN;
+}
+
 images {
     image: "messages_date_divider.#.png" RAW;
 }
@@ -330,6 +334,16 @@ group { name: "elm/genlist/item/sentbubble/default";
         }
     }
     programs{
+        program { name: "play_sound";
+            signal: "elm,state,clicked";
+            source: "elm";
+            script {
+                run_program(PROGRAM:"touch_sound");
+            }
+        }
+        program { name: "touch_sound";
+            action: RUN_PLUGIN "touch_sound";
+        }
         program { name: "pressed";
             signal: "elm,state,selected";
             source: "elm";
index 17a97a47fc375c4389b94fd4ba2fd7304810d447..99197f16dad5abd74aa4fd386253f4d68e60ebb7 100644 (file)
@@ -92,3 +92,9 @@
                action: STATE_SET state_ 0.0;   \
                target: target_;                                \
        }
+#define TOUCH_SOUND_PLUGIN                                                             \
+plugin {                                                                                               \
+        name: "touch_sound";                                                           \
+        source: "feedback";                                                            \
+        param: "FEEDBACK_TYPE_SOUND FEEDBACK_PATTERN_TAP"; \
+}
index db0a9906f6eb38f65ff2f2312757d35dc243de88..8ae9afaf14f8a22a479d501b18788b1b1f040b77 100755 (executable)
@@ -32,6 +32,9 @@
 
 collections {
     BASE_SCALE;
+    plugins {
+        TOUCH_SOUND_PLUGIN;
+    }
     styles {
        // ************* list main text ********** //
        style { name: "list_text_main";