X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2FTizen.System.Information%2FRuntimeInfo%2FRuntimeInfoEventHandler.cs;h=9405f15afa413f0f633ba9b07894fde2d3642098;hb=deaaacef3fcc1332f07fcf2eaa6d602a3e131c70;hp=8dde55d5c0dbca9bca742b677e98250f0c6229ca;hpb=ab7484336f7fa7d3ea95dd10476b6c2f397a52ef;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git diff --git a/src/Tizen.System.Information/RuntimeInfo/RuntimeInfoEventHandler.cs b/src/Tizen.System.Information/RuntimeInfo/RuntimeInfoEventHandler.cs index 8dde55d..9405f15 100755 --- a/src/Tizen.System.Information/RuntimeInfo/RuntimeInfoEventHandler.cs +++ b/src/Tizen.System.Information/RuntimeInfo/RuntimeInfoEventHandler.cs @@ -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");