Fix the status of active keyboard in input method setting selector. 46/41046/1
authorshoum.chen@samsung.com <shoum.chen@samsung.com>
Fri, 5 Jun 2015 07:39:31 +0000 (15:39 +0800)
committerJihoon Kim <jihoon48.kim@samsung.com>
Thu, 11 Jun 2015 04:20:16 +0000 (13:20 +0900)
Change-Id: I02dc386829fca1159720ac993cb5d4fda0e7a5a6
Signed-off-by: shoum.chen@samsung.com <shoum.chen@samsung.com>
im_setting_selector/input_method_setting_selector_ui.cpp

index 68c394f..29f257e 100644 (file)
@@ -87,6 +87,7 @@ static void im_setting_selector_load_ime_info(void)
     isf_control_get_active_ime(&active_ime_appid);
     ime_info_s *info = NULL;
     int cnt = isf_control_get_all_ime_info(&info);
+    int nIndex = -1;
     if(info)
     {
         for(int i=0; i<cnt; ++i)
@@ -95,9 +96,10 @@ static void im_setting_selector_load_ime_info(void)
             if(info[i].is_enabled)
             {
                 g_ime_info_list.push_back(info[i]);
+                nIndex ++;
                 if(!strcmp(active_ime_appid, info[i].appid))
                 {
-                    g_active_ime_id = i;
+                    g_active_ime_id = nIndex;
                 }
             }
         }