Modified not to set the same IME to default IME 23/282523/2 accepted/tizen/unified/20221006.151850
authorInHong Han <inhong1.han@samsung.com>
Wed, 5 Oct 2022 04:33:09 +0000 (13:33 +0900)
committerInHong Han <inhong1.han@samsung.com>
Wed, 5 Oct 2022 04:34:53 +0000 (13:34 +0900)
Change-Id: I291f2c03356f248db8e75d5cf7f80112b09c50e6

Settings/SettingInputmethod/SettingDefaultKeyboard.cs
Settings/SettingInputmethod/SettingWidgetInputmethod.cs
packaging/org.tizen.cssetting-inputmethod-1.0.0.tpk

index 1352aa03b26d071a3b7ad40776f57fbae4c05885..a1bc74e66bc88af91c27e30edb06975d4f4d6cef 100644 (file)
@@ -14,7 +14,7 @@ namespace SettingInputmethod
     {\r
         private static List<ImeInformationStruct> imeList;\r
         private static List<string> labelList;\r
-        private int currentIndex = 0;\r
+        private int currentIndex = -1;\r
         private int pickerIndex = 0;\r
 \r
         public SettingDefaultKeyboard() : base()\r
@@ -62,7 +62,6 @@ namespace SettingInputmethod
             TextLabel title = new TextLabel()\r
             {\r
                 Text = Resource.Resources.IDS_ST_HEADER_DEFAULT_KEYBOARD_ABB,\r
-                PointSize = 10,\r
                 VerticalAlignment = VerticalAlignment.Center,\r
                 HorizontalAlignment = HorizontalAlignment.Center,\r
             };\r
@@ -84,8 +83,11 @@ namespace SettingInputmethod
             };\r
             button.Clicked += (object sender, ClickedEventArgs e) =>\r
             {\r
-                Log.Debug(LogTag, "new keyboard : " + labelList[currentIndex]);\r
-                IsfControlSetActiveIme(imeList[currentIndex].appId);\r
+                if (currentIndex > -1 && String.Compare(defaultIse, imeList[currentIndex].appId) != 0)\r
+                {\r
+                    Log.Debug(LogTag, "new keyboard : " + labelList[currentIndex]);\r
+                    IsfControlSetActiveIme(imeList[currentIndex].appId);\r
+                }\r
                 navigator.Pop();\r
             };\r
 \r
@@ -119,6 +121,7 @@ namespace SettingInputmethod
 \r
         private void onValueChanged(object sender, ValueChangedEventArgs e)\r
         {\r
+            Log.Debug(LogTag, "current index : " + e.Value.ToString());\r
             currentIndex = e.Value - 1;\r
         }\r
     }\r
index 190d028b5bb129d29ef14339913a1c65da590b25..04921e01aa18bcf57429d4117886160407f0a120 100644 (file)
@@ -22,6 +22,7 @@ namespace SettingInputmethod
         {\r
             Bundle bundle = Bundle.Decode(contentInfo);\r
             navigator = window.GetDefaultNavigator();\r
+            window.BackgroundColor = Color.Transparent;\r
 \r
             ScrollableBase settingScroll = new ScrollableBase()\r
             {\r
index f2c3a608d3b1bf6969c52f80dde399666000559e..cc1b8141eed450d8f9dc77980055f1cb83ebd142 100644 (file)
Binary files a/packaging/org.tizen.cssetting-inputmethod-1.0.0.tpk and b/packaging/org.tizen.cssetting-inputmethod-1.0.0.tpk differ