diff options
author | hughchen <hughchen@google.com> | 2019-08-21 15:08:19 +0800 |
---|---|---|
committer | hughchen <hughchen@google.com> | 2019-08-23 16:06:01 +0800 |
commit | 3f8569049a10c5187502baa638e083337d06a785 (patch) | |
tree | babe4bdbaa31878927a7423d4a5f02b5c92a78a7 /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 620c61dc8ada803c93f497c5c406cf03ee6e43bd (diff) |
Fix that Bluetooth device should not duplicate in the list
This CL before, if someone call addDevice() twice to add
same device and previous addDevice() call is synchronized,
it will cause list have duplicate device.
Because addDevice() will add device directly without check
whether device already in the list.
This CL is add duplicate check in addDevice().
Bug: 139516941
Test: make -j42 RunSettingsLibRoboTests
Change-Id: I859067048c71be95b0a3b2ff0317ea93f49cea7d
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions