Skip to content

Commit

Permalink
bt connection lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksandr-ru committed Mar 29, 2024
1 parent f5c182c commit 668ff4b
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

package ru.aleksandr.dccppthrottle.cs

import android.annotation.SuppressLint
import android.bluetooth.BluetoothAdapter
import android.bluetooth.BluetoothDevice
import android.bluetooth.BluetoothManager
Expand Down Expand Up @@ -103,6 +104,7 @@ class BluetoothConnection(context: Context) : Closeable {
}
}

@SuppressLint("MissingPermission")
private inner class ConnectThread(device: BluetoothDevice) : Thread() {
private val mmSocket: BluetoothSocket? by lazy(LazyThreadSafetyMode.NONE) {
val uuid = device.uuids.first().uuid
Expand Down

0 comments on commit 668ff4b

Please sign in to comment.