From: Anuj Kumar Singh Date: Tue, 17 Oct 2023 10:38:39 +0000 (+0530) Subject: Resolve 3 or more clicks are needed for getting pairing request issue X-Git-Tag: accepted/tizen/8.0/unified/20231019.051741~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F49%2F300149%2F1;p=profile%2Fiot%2Fapps%2Fdotnet%2Fsetting-bluetooth.git Resolve 3 or more clicks are needed for getting pairing request issue This Patch: - Resolves https://code.sec.samsung.net/jira/browse/TEIGHT-5421 Change-Id: Ia399499fa0e077e4051943313a2bf1accc487883 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 2c8abaa..8cc3aef 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