[Information] No more convert for TV product (#766)
[platform/core/csapi/tizenfx.git] / src / Tizen.System.Information / RuntimeInfo / RuntimeInfoEventHandler.cs
index 8dde55d..9405f15 100755 (executable)
@@ -40,11 +40,10 @@ namespace Tizen.System
                     __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()
@@ -55,7 +54,7 @@ namespace Tizen.System
                         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");
@@ -69,7 +68,7 @@ namespace Tizen.System
                 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");