mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-14 22:56:12 -04:00
Cleanup Items that I didn't want or otherwise didn't get in the last c/l
PiperOrigin-RevId: 390507261
This commit is contained in:
committed by
Copybara-Service
parent
07d33cfa9e
commit
628255ac59
@@ -59,11 +59,9 @@ class BluetoothDevice : public api::BluetoothDevice {
|
||||
BluetoothDevice& operator=(BluetoothDevice&&) = default;
|
||||
|
||||
// https://developer.android.com/reference/android/bluetooth/BluetoothDevice.html#getName()
|
||||
// TODO(b/184975123): replace with real implementation.
|
||||
std::string GetName() const override;
|
||||
|
||||
// Returns BT MAC address assigned to this device.
|
||||
// TODO(b/184975123): replace with real implementation.
|
||||
std::string GetMacAddress() const override;
|
||||
|
||||
std::string GetId() { return id_; }
|
||||
|
||||
@@ -348,9 +348,9 @@ winrt::fire_and_forget BluetoothClassicMedium::DeviceWatcher_Updated(
|
||||
|
||||
winrt::fire_and_forget BluetoothClassicMedium::DeviceWatcher_Removed(
|
||||
DeviceWatcher sender, DeviceInformationUpdate deviceInfo) {
|
||||
if (IsWatcherStarted()) {
|
||||
EnterCriticalSection(&critical_section_);
|
||||
EnterCriticalSection(&critical_section_);
|
||||
|
||||
if (IsWatcherStarted()) {
|
||||
if (discovery_callback_.device_lost_cb != nullptr) {
|
||||
discovery_callback_.device_lost_cb(*devices_by_id_[deviceInfo.Id()]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user