From: InHong Han Date: Wed, 5 Oct 2022 04:33:09 +0000 (+0900) Subject: Modified not to set the same IME to default IME X-Git-Tag: accepted/tizen/unified/20221006.151850^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F23%2F282523%2F2;p=profile%2Fiot%2Fapps%2Fdotnet%2Fsetting-inputmethod.git Modified not to set the same IME to default IME Change-Id: I291f2c03356f248db8e75d5cf7f80112b09c50e6 --- diff --git a/Settings/SettingInputmethod/SettingDefaultKeyboard.cs b/Settings/SettingInputmethod/SettingDefaultKeyboard.cs index 1352aa0..a1bc74e 100644 --- a/Settings/SettingInputmethod/SettingDefaultKeyboard.cs +++ b/Settings/SettingInputmethod/SettingDefaultKeyboard.cs @@ -14,7 +14,7 @@ namespace SettingInputmethod { private static List imeList; private static List labelList; - private int currentIndex = 0; + private int currentIndex = -1; private int pickerIndex = 0; public SettingDefaultKeyboard() : base() @@ -62,7 +62,6 @@ namespace SettingInputmethod TextLabel title = new TextLabel() { Text = Resource.Resources.IDS_ST_HEADER_DEFAULT_KEYBOARD_ABB, - PointSize = 10, VerticalAlignment = VerticalAlignment.Center, HorizontalAlignment = HorizontalAlignment.Center, }; @@ -84,8 +83,11 @@ namespace SettingInputmethod }; button.Clicked += (object sender, ClickedEventArgs e) => { - Log.Debug(LogTag, "new keyboard : " + labelList[currentIndex]); - IsfControlSetActiveIme(imeList[currentIndex].appId); + if (currentIndex > -1 && String.Compare(defaultIse, imeList[currentIndex].appId) != 0) + { + Log.Debug(LogTag, "new keyboard : " + labelList[currentIndex]); + IsfControlSetActiveIme(imeList[currentIndex].appId); + } navigator.Pop(); }; @@ -119,6 +121,7 @@ namespace SettingInputmethod private void onValueChanged(object sender, ValueChangedEventArgs e) { + Log.Debug(LogTag, "current index : " + e.Value.ToString()); currentIndex = e.Value - 1; } } diff --git a/Settings/SettingInputmethod/SettingWidgetInputmethod.cs b/Settings/SettingInputmethod/SettingWidgetInputmethod.cs index 190d028..04921e0 100644 --- a/Settings/SettingInputmethod/SettingWidgetInputmethod.cs +++ b/Settings/SettingInputmethod/SettingWidgetInputmethod.cs @@ -22,6 +22,7 @@ namespace SettingInputmethod { Bundle bundle = Bundle.Decode(contentInfo); navigator = window.GetDefaultNavigator(); + window.BackgroundColor = Color.Transparent; ScrollableBase settingScroll = new ScrollableBase() { diff --git a/packaging/org.tizen.cssetting-inputmethod-1.0.0.tpk b/packaging/org.tizen.cssetting-inputmethod-1.0.0.tpk index f2c3a60..cc1b814 100644 Binary files a/packaging/org.tizen.cssetting-inputmethod-1.0.0.tpk and b/packaging/org.tizen.cssetting-inputmethod-1.0.0.tpk differ