summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkiso.chang <kiso.chang@samsung.com>2022-10-16 16:02:35 +0900
committerkiso.chang <kiso.chang@samsung.com>2022-10-16 16:04:59 +0900
commit9b8314425718c09bab02e70cc0d2754857a30b21 (patch)
tree263a36cd48d477a6bf7ab4757384de0aa46ea0eb
parentf83e6b0a3e580a54cd938156374d99ca014f8523 (diff)
downloadsettings-tizen_7.0_hotfix.tar.gz
settings-tizen_7.0_hotfix.tar.bz2
settings-tizen_7.0_hotfix.zip
Change-Id: I7377f60805a3c6c3a66ea0ff8aff6366654f72d9 Signed-off-by: kiso.chang <kiso.chang@samsung.com>
-rw-r--r--SettingMain/SettingContent_Display.cs3
-rw-r--r--SettingMain/SettingContent_Fonttype.cs43
-rw-r--r--packaging/org.tizen.cssettings-1.0.0.tpkbin1142335 -> 1142464 bytes
3 files changed, 16 insertions, 30 deletions
diff --git a/SettingMain/SettingContent_Display.cs b/SettingMain/SettingContent_Display.cs
index 3ce1589..52ac106 100644
--- a/SettingMain/SettingContent_Display.cs
+++ b/SettingMain/SettingContent_Display.cs
@@ -144,7 +144,8 @@ namespace SettingMain
}
- item = SettingItemCreator.CreateItemWithCheck(Resources.IDS_ST_BODY_THEME, SettingContent_Theme.GetThemeName());
+ //item = SettingItemCreator.CreateItemWithCheck(Resources.IDS_ST_BODY_THEME, SettingContent_Theme.GetThemeName());
+ item = SettingItemCreator.CreateItemWithCheck(Resources.IDS_ST_BODY_THEME);
if (item != null)
{
item.Clicked += (o, e) =>
diff --git a/SettingMain/SettingContent_Fonttype.cs b/SettingMain/SettingContent_Fonttype.cs
index 7a883db..d7c0d14 100644
--- a/SettingMain/SettingContent_Fonttype.cs
+++ b/SettingMain/SettingContent_Fonttype.cs
@@ -52,35 +52,9 @@ namespace SettingMain
{
FonttypeList = new ArrayList();
-
FonttypeList.Add(SystemSettings.FontType);
-
-#if false
- string sharedData = "/opt/usr/data";
- string type = sharedData + "/settings/Alerts";
-
- Tizen.Log.Debug("NUI", String.Format("fonttype type : {0}", type));
-
- System.IO.DirectoryInfo d = new System.IO.DirectoryInfo(type);
-
- int i = 0;
-
- FileInfo[] wavFiles = d.GetFiles("*.wav");
- foreach (FileInfo file in wavFiles)
- {
- Tizen.Log.Debug("NUI", String.Format("[{0}] {1}", i, file.Name));
- FonttypeList.Add(type +"/"+ file.Name);
- i++;
- }
-
- FileInfo[] mp3Files = d.GetFiles("*.mp3");
- foreach (FileInfo file in mp3Files)
- {
- Tizen.Log.Debug("NUI", String.Format("[{0}] {1}", i, file.Name));
- FonttypeList.Add(type + "/" + file.Name);
- i++;
- }
-#endif
+ Tizen.Log.Debug("NUI", "SystemSettings.DefaultFontType : "+ SystemSettings.DefaultFontType);
+ Tizen.Log.Debug("NUI", "SystemSettings.FontType : " + SystemSettings.FontType);
}
@@ -178,7 +152,18 @@ namespace SettingMain
private static void SetFonttype(string fonttype)
{
- SystemSettings.FontType = fonttype;
+ try
+ {
+ if (fonttype.Equals("Default")) {
+ fonttype = SystemSettings.DefaultFontType;
+ }
+ SystemSettings.FontType = fonttype;
+ }
+ catch (Exception e)
+ {
+ Tizen.Log.Debug("NUI", string.Format("error :({0}) {1} ", e.GetType().ToString(), e.Message));
+ }
+
}
public static string GetFonttype()
diff --git a/packaging/org.tizen.cssettings-1.0.0.tpk b/packaging/org.tizen.cssettings-1.0.0.tpk
index d8d9a39..6e3fb57 100644
--- a/packaging/org.tizen.cssettings-1.0.0.tpk
+++ b/packaging/org.tizen.cssettings-1.0.0.tpk
Binary files differ