chore: log scan failures
This commit is contained in:
@@ -75,7 +75,7 @@ class MainActivity : AppCompatActivity() {
|
||||
}
|
||||
}
|
||||
|
||||
private var scanResults: MutableMap<String, ScanResult> = HashMap();
|
||||
private var scanResults = HashMap<String, ScanResult>();
|
||||
|
||||
override fun onCreate(savedInstanceState: Bundle?) {
|
||||
WindowCompat.setDecorFitsSystemWindows(window, false)
|
||||
@@ -204,6 +204,10 @@ class MainActivity : AppCompatActivity() {
|
||||
)
|
||||
|
||||
}
|
||||
|
||||
override fun onScanFailed(errorCode: Int) {
|
||||
Log.e("ScanCallback", "onScanFailed: code $errorCode")
|
||||
}
|
||||
}
|
||||
|
||||
private fun getDisplayScanResults(): List<ScanResult> {
|
||||
|
||||
Reference in New Issue
Block a user