Fix issue that remaining black screen when back key is pressed after launch keyboard...
[platform/core/uifw/inputdelegator.git] / src / w-input-template.cpp
index 543709c..adb23e1 100755 (executable)
@@ -49,9 +49,9 @@ static bool input_template_init_default(void);
 
 static void _input_template_db_vconf_changed(keynode_t *key, void *data)
 {
-       bool db_status = vconf_keynode_get_bool (key);
+       bool db_status = vconf_keynode_get_bool(key);
 
-       PRINTFUNC(DLOG_DEBUG,"starts :: db_status = %d", db_status);
+       PRINTFUNC(DLOG_DEBUG, "starts :: db_status = %d", db_status);
 
        if(db_status != 0)
                return;
@@ -137,7 +137,7 @@ static bool input_template_init_db_util(void)
                        "select sortId, itemId, checked, message from %s",
                        "tmpl_msg_table");
 
-       sqlite3_prepare_v2(g_tt_db, query, strlen(query), &stmt, NULL);
+       ret = sqlite3_prepare_v2(g_tt_db, query, strlen(query), &stmt, NULL);
 
        if (ret != SQLITE_OK) {
                PRINTFUNC(DLOG_ERROR, "Can not get query");
@@ -280,7 +280,6 @@ void input_template_set_notify(input_template_changed callback,
 
 void input_template_unset_notify(void)
 {
-
        g_input_template.callback = NULL;
        g_input_template.user_data = NULL;
 }