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 private var pan: BluetoothProfile? = null
var activeFailureCause: Throwable? = 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 * Based on: https://android.googlesource.com/platform/packages/apps/Settings/+/78d5efd/src/com/android/settings/TetherSettings.java
*/ */
val active: Boolean? get() { val active: Boolean? get() {

View File

@@ -122,7 +122,7 @@ object TetheringManager {
/** /**
* Bluetooth tethering type. * Bluetooth tethering type.
* *
* Requires BLUETOOTH permission, or BLUETOOTH_PRIVILEGED on API 30+. * Requires BLUETOOTH permission.
* @see [startTethering]. * @see [startTethering].
*/ */
@RequiresApi(24) @RequiresApi(24)