There was some exception throwing at some targets s.t. SystemSettings not supported.
If then, we should not do anything after those exception occured.
Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
static SystemFontSizeChangedManager()
{
- SystemSettings.FontSizeChanged += SystemFontSizeChanged;
+ try
+ {
+ SystemSettings.FontSizeChanged += SystemFontSizeChanged;
+ }
+ catch(Exception e)
+ {
+ Tizen.Log.Info("NUI", $"{e} Exception caught! SystemFontSizeChanged will not be detected!\n");
+ fontSize = SystemSettingsFontSize.Normal;
+ }
}
/// <summary>
static SystemFontTypeChangedManager()
{
- SystemSettings.FontTypeChanged += SystemFontTypeChanged;
+ try
+ {
+ SystemSettings.FontTypeChanged += SystemFontTypeChanged;
+ }
+ catch(Exception e)
+ {
+ Tizen.Log.Info("NUI", $"{e} Exception caught! SystemFontTypeChanged will not be detected!\n");
+ fontType = defaultFontType;
+ }
}
/// <summary>
static SystemLocaleLanguageChangedManager()
{
- SystemSettings.LocaleLanguageChanged += SystemLocaleLanguageChanged;
+ try
+ {
+ SystemSettings.LocaleLanguageChanged += SystemLocaleLanguageChanged;
+ }
+ catch(Exception e)
+ {
+ Tizen.Log.Info("NUI", $"{e} Exception caught! SystemLocaleLangeChanged will not be detected!\n");
+ localeLanguage = defaultLocaleLanguage;
+ }
}
/// <summary>
}
string translatableText = null;
textLabelSid = value;
- translatableText = NUIApplication.MultilingualResourceManager?.GetString(textLabelSid, new global::System.Globalization.CultureInfo(SystemSettings.LocaleLanguage.Replace("_", "-")));
+ try
+ {
+ translatableText = NUIApplication.MultilingualResourceManager?.GetString(textLabelSid, new global::System.Globalization.CultureInfo(SystemSettings.LocaleLanguage.Replace("_", "-")));
+ }
+ catch(global::System.Exception e)
+ {
+ Tizen.Log.Info("NUI", $"{e} Exception caught! Translate {value} failed!\n");
+ translatableText = null;
+ }
if (translatableText != null)
{