__callback = (RuntimeInfoKey num, IntPtr userData) =>
{
string strKey = "Invalid";
- RuntimeInfoKey key = TvProductHelper.ReconvertKeyIfTvProduct(num);
- if (key > 0 && Information.EnumStringMapping.ContainsKey(key))
+ if (num > 0 && Information.EnumStringMapping.ContainsKey(num))
{
- strKey = Information.EnumStringMapping[key];
+ strKey = Information.EnumStringMapping[num];
}
RuntimeFeatureStatusChangedEventArgs eventArgs = new RuntimeFeatureStatusChangedEventArgs()
Handler?.Invoke(null, eventArgs);
};
- InformationError ret = Interop.RuntimeInfo.SetRuntimeInfoChangedCallback(TvProductHelper.ConvertKeyIfTvProduct(Key), __callback, IntPtr.Zero);
+ InformationError ret = Interop.RuntimeInfo.SetRuntimeInfoChangedCallback(Key, __callback, IntPtr.Zero);
if (ret != InformationError.None)
{
Log.Error(InformationErrorFactory.LogTag, "Interop failed to add event handler");
Handler -= value;
if (Handler == null)
{
- InformationError ret = Interop.RuntimeInfo.UnsetRuntimeInfoChangedCallback(TvProductHelper.ConvertKeyIfTvProduct(Key));
+ InformationError ret = Interop.RuntimeInfo.UnsetRuntimeInfoChangedCallback(Key);
if (ret != InformationError.None)
{
Log.Error(InformationErrorFactory.LogTag, "Interop failed to add event handler");