[NUI] Fix AppControlReceived key duplicated error
authordongsug.song <dongsug.song@samsung.com>
Tue, 7 Jan 2025 04:19:02 +0000 (13:19 +0900)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Tue, 7 Jan 2025 04:31:43 +0000 (13:31 +0900)
src/Tizen.NUI/src/public/Application/NUIApplication.cs
src/Tizen.NUI/src/public/WebView/WebView.cs

index 67525ace359131a656345bf90cef3186cc89c23f..b63fab53542f221cef85cea15d168f8e11af711c 100755 (executable)
@@ -523,7 +523,6 @@ namespace Tizen.NUI
             Backend.AddEventHandler(EventType.PreCreated, OnPreCreate);
             Backend.AddEventHandler(EventType.Resumed, OnResume);
             Backend.AddEventHandler(EventType.Paused, OnPause);
-            Backend.AddEventHandler<AppControlReceivedEventArgs>(EventType.AppControlReceived, OnAppControlReceived);
             base.Run(args);
         }
 
index aff44926620c6dab25173b8d7287e65260c99271..91c9ca08cd2c03e3b49aee57d947f05f4bc0e2e7 100755 (executable)
@@ -1142,7 +1142,7 @@ namespace Tizen.NUI.BaseComponents
                 if (deviceConnectionChangedEventHandler == null)
                 {
                     IntPtr ip = IntPtr.Zero;
-                    Interop.WebView.RegisterUserMediaPermissionRequestCallback(SwigCPtr, new HandleRef(this, ip));
+                    Interop.WebView.RegisterDeviceConnectionChangedCallback(SwigCPtr, new HandleRef(this, ip));
                 }
             }
         }
@@ -1151,9 +1151,7 @@ namespace Tizen.NUI.BaseComponents
         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));
         }