Commit 4c088aeb authored by Andreas Schildbach's avatar Andreas Schildbach
Browse files

ScannerFragment: Show only devices with name in scanner.

parent 4bf0a6e0
......@@ -40,8 +40,9 @@ class ScannerFragment : Fragment() {
val callback = object : ScanCallback() {
override fun onScanResult(callbackType: Int, result: ScanResult) {
System.out.println("===== onScanResult " + result)
val device = result.device
if (device.name == null)
return
listAdapter.put(
Device(
btMac = device.address,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment