private void ListViewOnItemClick(object sender, AdapterView.ItemClickEventArgs args) { var name = _adapter.GetItem(args.Position); var device = _deviceList.First(d => d.Name.Equals(name)); _bluetoothClient.SelectedDevice = device; _scanner.StopScan(); var intent = new Intent(this, typeof(DeviceView)); StartActivity(intent); }
public void StopScan() => _scanner?.StopScan();