Skip to content

Commit

Permalink
Fix lint for DeviceScanActivity (android#118)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelpinto authored Jun 26, 2023
1 parent e0e772f commit 61c1ecf
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package com.sample.android.bluetoothle.java;

import android.annotation.SuppressLint;
import android.app.ListActivity;
import android.bluetooth.BluetoothAdapter;
import android.bluetooth.le.BluetoothLeScanner;
Expand Down Expand Up @@ -35,6 +36,7 @@ public void onScanResult(int callbackType, ScanResult result) {
// Stops scanning after 10 seconds.
private static final long SCAN_PERIOD = 10000;

@SuppressLint("MissingPermission")
private void scanLeDevice() {
if (!mScanning) {
// Stops scanning after a pre-defined scan period.
Expand All @@ -54,4 +56,4 @@ public void run() {
}
}
// [END start_and_stop_scan]
}
}

0 comments on commit 61c1ecf

Please sign in to comment.