From: Anuj Kumar Singh Date: Tue, 17 Oct 2023 08:28:08 +0000 (+0530) Subject: Resolve 3 or more clicks are needed for getting pairing request issue X-Git-Tag: accepted/tizen/unified/20231106.171626~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6031175e2dd61bfdf605dd4140e8637b83552829;p=profile%2Fiot%2Fapps%2Fdotnet%2Fsetting-bluetooth.git Resolve 3 or more clicks are needed for getting pairing request issue Change-Id: I38ece8748b39239c32fc3b194e0d743a65cc7eb8 Signed-off-by: Anuj Kumar Singh --- diff --git a/SettingBluetooth/SettingBluetooth/Controller/DeviceController.cs b/SettingBluetooth/SettingBluetooth/Controller/DeviceController.cs index 02e3f45..0da84c8 100644 --- a/SettingBluetooth/SettingBluetooth/Controller/DeviceController.cs +++ b/SettingBluetooth/SettingBluetooth/Controller/DeviceController.cs @@ -88,6 +88,11 @@ namespace SettingBluetooth var device = deviceItem.BindingContext as Device; Log.Info(SettingBluetooth.LogTag, "DeviceItem clicked. Address: " + device.Address + ", Name: " + device.Name); + if (BtModel.IsScanning) + { + BtModel.StopDiscovery(); + } + if (device.BtDevice.IsPaired) { if (device.BtDevice.IsA2dpSupported) diff --git a/packaging/org.tizen.cssetting-bluetooth-1.0.0.rpk b/packaging/org.tizen.cssetting-bluetooth-1.0.0.rpk index 664a252..59aa620 100644 Binary files a/packaging/org.tizen.cssetting-bluetooth-1.0.0.rpk and b/packaging/org.tizen.cssetting-bluetooth-1.0.0.rpk differ