Skip to content

Commit

Permalink
[android] Clear scan results list on startScan.
Browse files Browse the repository at this point in the history
  • Loading branch information
pauldemarco committed Apr 20, 2020
1 parent 7aeb171 commit 0e1bf3a
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -744,6 +744,7 @@ private void startScan(MethodCall call, Result result) {
try {
settings = Protos.ScanSettings.newBuilder().mergeFrom(data).build();
allowDuplicates = settings.getAllowDuplicates();
macDeviceScanned.clear();
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
startScan21(settings);
} else {
Expand Down

0 comments on commit 0e1bf3a

Please sign in to comment.