This commit is contained in:
Mygod
2020-06-16 09:34:25 +08:00
parent 26104074c4
commit 0430e76143
2 changed files with 3 additions and 1 deletions

View File

@@ -84,6 +84,8 @@ class BluetoothTethering(context: Context, val stateListener: () -> Unit) :
private var pan: BluetoothProfile? = null
var activeFailureCause: Throwable? = null
/**
* Requires BLUETOOTH_PRIVILEGED on API 30+.
*
* Based on: https://android.googlesource.com/platform/packages/apps/Settings/+/78d5efd/src/com/android/settings/TetherSettings.java
*/
val active: Boolean? get() {