RL: fix checking for permission
This commit is contained in:
parent
97b002eb3c
commit
14641e85e6
1 changed files with 1 additions and 1 deletions
|
@ -160,7 +160,7 @@ class RileyLinkBLE @Inject constructor(
|
|||
return
|
||||
}
|
||||
if (config.PUMPDRIVERS && Build.VERSION.SDK_INT >= Build.VERSION_CODES.S &&
|
||||
ContextCompat.checkSelfPermission(context, "android.permission.BLUETOOTH_CONNECT") == PackageManager.PERMISSION_GRANTED
|
||||
ContextCompat.checkSelfPermission(context, "android.permission.BLUETOOTH_CONNECT") != PackageManager.PERMISSION_GRANTED
|
||||
) {
|
||||
aapsLogger.debug(LTag.PUMPBTCOMM, "no permission")
|
||||
return
|
||||
|
|
Loading…
Reference in a new issue