diff --git a/bluetooth/finder/aidl/default/BluetoothFinder.cpp b/bluetooth/finder/aidl/default/BluetoothFinder.cpp index 236a1f8aa4..a43846b1e0 100644 --- a/bluetooth/finder/aidl/default/BluetoothFinder.cpp +++ b/bluetooth/finder/aidl/default/BluetoothFinder.cpp @@ -19,7 +19,7 @@ namespace aidl::android::hardware::bluetooth::finder::impl { ::ndk::ScopedAStatus BluetoothFinder::sendEids(const ::std::vector& keys) { - keys_.insert(keys_.end(), keys.begin(), keys.end()); + keys_.assign(keys.begin(), keys.end()); return ::ndk::ScopedAStatus::ok(); }