Modified not to save autofill data in input field with no autofill hint 56/164756/3
authorJihoon Kim <jihoon48.kim@samsung.com>
Thu, 21 Dec 2017 01:45:57 +0000 (10:45 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Thu, 21 Dec 2017 01:46:51 +0000 (10:46 +0900)
Change-Id: Iea54be24580fe789b846db54df26c92339c78cd7
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
src/ise.cpp

index 4cd1d0c..3097688 100644 (file)
@@ -1224,6 +1224,10 @@ static void save_autofill_data()
 {
     char *text = NULL;
     int cursor;
+
+    if (g_autofill_hint == 0)
+        return;
+
     ime_get_surrounding_text(-1, -1, &text, &cursor);
     SECURE_LOGD("surrounding text : %s\n", text);
     if (!text) return;