Skip to content

Commit

Permalink
[NUI] Fix AppControlReceived key duplicated error
Browse files Browse the repository at this point in the history
  • Loading branch information
dongsug-song committed Jan 7, 2025
1 parent bebc82f commit cacac66
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
1 change: 0 additions & 1 deletion src/Tizen.NUI/src/public/Application/NUIApplication.cs
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,6 @@ public override void Run(string[] args)
Backend.AddEventHandler(EventType.PreCreated, OnPreCreate);
Backend.AddEventHandler(EventType.Resumed, OnResume);
Backend.AddEventHandler(EventType.Paused, OnPause);
Backend.AddEventHandler<AppControlReceivedEventArgs>(EventType.AppControlReceived, OnAppControlReceived);
base.Run(args);
}

Expand Down
6 changes: 2 additions & 4 deletions src/Tizen.NUI/src/public/WebView/WebView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1142,7 +1142,7 @@ public event EventHandler<WebViewDeviceConnectionChangedEventArgs> DeviceConnect
if (deviceConnectionChangedEventHandler == null)
{
IntPtr ip = IntPtr.Zero;
Interop.WebView.RegisterUserMediaPermissionRequestCallback(SwigCPtr, new HandleRef(this, ip));
Interop.WebView.RegisterDeviceConnectionChangedCallback(SwigCPtr, new HandleRef(this, ip));
}
}
}
Expand All @@ -1151,9 +1151,7 @@ public event EventHandler<WebViewDeviceConnectionChangedEventArgs> DeviceConnect
public void SetDeviceListGetCallback(WebViewDeviceListGetCallback callback)
{
deviceListGetCallbackForUser = callback;

internalWebViewDeviceListGetCallback cb = deviceListGet;
IntPtr ip = Marshal.GetFunctionPointerForDelegate(cb);
IntPtr ip = Marshal.GetFunctionPointerForDelegate((internalWebViewDeviceListGetCallback)deviceListGet);
Interop.WebView.RegisterDeviceListGetCallback(SwigCPtr, new HandleRef(this, ip));
}

Expand Down

0 comments on commit cacac66

Please sign in to comment.