{
bool ret_value;
bool value;
+ string str_value;
ret_value = Tizen.System.Information.TryGetValue<bool>("tizen.org/feature/display", out value);
isDisplayStateSupport = 1;
}
- try
+ ret_value = Tizen.System.Information.TryGetValue<string>("tizen.org/feature/profile", out str_value);
+ if (ret_value && String.Compare(str_value, "tv", true) == 0)
{
- foreach (Display dis in Display.Displays)
+ isDisplayBrightnessSupport = 0;
+ } else {
+ try
{
- dis.Brightness = 30;
+ foreach (Display dis in Display.Displays)
+ {
+ dis.Brightness = 30;
+ }
+ }
+ catch (NotSupportedException e)
+ {
+ isDisplayBrightnessSupport = 0;
}
- }
- catch (NotSupportedException e)
- {
- isDisplayBrightnessSupport = 0;
}
}