Close candidate more view when pressing smartreply item 66/250766/2
authorJihoon Kim <jihoon48.kim@samsung.com>
Mon, 4 Jan 2021 10:10:13 +0000 (19:10 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Mon, 4 Jan 2021 10:22:50 +0000 (19:22 +0900)
Change-Id: Idb9876c94503b0df002812dd55edfbfa3dce59c4
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
src/ise.cpp

index b29d01d..91d27e9 100644 (file)
@@ -170,6 +170,7 @@ class CandidateEventListener: public EventListener
                             }
                         } else if (multidesc.index < (int)smartreply_size + 1) {
                             ise_send_string(g_softcandidate_string[multidesc.index].c_str());
+                            ise_update_table(g_smartreply_strings);
                         } else {
                             if (info && info->load_in_ime)
                                 ime_select_candidate(multidesc.index - smartreply_size - 1);
@@ -177,8 +178,10 @@ class CandidateEventListener: public EventListener
                                 engine_loader_select_candidate(multidesc.index - smartreply_size - 1);
                         }
                     } else {
-                        if (multidesc.index < (int)smartreply_size)
+                        if (multidesc.index < (int)smartreply_size) {
                             ise_send_string(g_softcandidate_string[multidesc.index].c_str());
+                            ise_update_table(g_smartreply_strings);
+                        }
                         else {
                             if (info && info->load_in_ime)
                                 ime_select_candidate(multidesc.index - smartreply_size);