Nearby Presence/Implementation: Fix for Android compile

PiperOrigin-RevId: 468735587
This commit is contained in:
Anay Wadhera
2022-08-19 10:43:41 -07:00
committed by Copybara-Service
parent d92f1d4757
commit 5b7bb37d41
5 changed files with 10 additions and 9 deletions
@@ -139,7 +139,7 @@ bool BluetoothAdapter::SetName(absl::string_view name,
bool enabled;
{
absl::MutexLock lock(&mutex_);
name_ = name;
name_ = std::string(name);
enabled = enabled_;
mode = mode_;
}