Handle permission issues in BluetoothTethering

This commit is contained in:
Mygod
2019-03-19 10:14:55 +08:00
parent 16688ebe7d
commit e81e66b84f
3 changed files with 24 additions and 1 deletions

View File

@@ -163,6 +163,8 @@ sealed class TetherManager(protected val parent: TetheringFragment) : Manager(),
override val type get() = VIEW_TYPE_BLUETOOTH
override val isStarted get() = tethering.active == true
override fun onException() = ManageBar.start(parent.requireContext())
override fun start() = BluetoothTethering.start(this)
override fun stop() {
TetheringManager.stop(TetheringManager.TETHERING_BLUETOOTH)