Use SECURE_LOGD
[platform/core/uifw/inputdelegator.git] / src / w-input-selector.cpp
index 57320ec..53576e0 100755 (executable)
@@ -843,7 +843,6 @@ unsigned int _update_smartreply_items(void *user_data)
        App_Data* app_data;
 
        Elm_Object_Item *first;
-       Elm_Object_Item *menu;
 
        unsigned int i = 0;
        unsigned int len = 0;
@@ -864,7 +863,7 @@ unsigned int _update_smartreply_items(void *user_data)
 
        /* Move to smartreply */
        first = elm_genlist_first_item_get(app_data->genlist);
-       menu = elm_genlist_item_next_get(first);
+       elm_genlist_item_next_get(first);
 
        if (input_smartreply_is_enabled() == false)
                return item_size;
@@ -885,7 +884,7 @@ unsigned int _update_smartreply_items(void *user_data)
                itc->func.del = NULL;
 
                for (i = 0; i < len; i++) {
-                       char *reply = "hello";
+                       char *reply = (char *)"hello";
                        unsigned int j;
                        bool matched;
 
@@ -895,7 +894,7 @@ unsigned int _update_smartreply_items(void *user_data)
                        reply = input_smartreply_get_nth_item(i, &type);
                        if (reply == NULL)
                                continue;
-                       PRINTFUNC(DLOG_DEBUG, "SmartReply = [%d]%s", i, reply);
+                       SECURE_LOGD("SmartReply = [%d]%s", i, reply);
 
                        for (j = 0; j < template_list.size(); j++) {
                                const char *template_str;
@@ -1130,14 +1129,14 @@ void _app_service(app_control_h service, void* user_data)
                                if (mime_type)
                                        free(mime_type);
                                goto ACTIVATE;
-                       } else if(!strncmp(mime_type, "audio/", strlen("audio/"))) {
+                       } else if (!strncmp(mime_type, "audio/", strlen("audio/"))) {
                                app_data->mime_type = MIME_TYPE_AUDIO;
                                app_data->app_type = APP_TYPE_STT;
                                _stt_clicked_cb((void *)app_data, NULL, NULL);
                                if (mime_type)
                                        free(mime_type);
                                goto ACTIVATE;
-                       } else if(!strncmp(mime_type, "text/", strlen("text/"))) {
+                       } else if (!strncmp(mime_type, "text/", strlen("text/"))) {
                                app_data->mime_type = MIME_TYPE_TEXT;
                        }
                }
@@ -1212,6 +1211,7 @@ void _app_pause(void* user_data)
 void _app_resume(void* user_data)
 {
        PRINTFUNC(DLOG_DEBUG, "");
+       resume_voice();
 }
 
 void _app_terminate(void* user_data)