Fix context gone after Bluetooth is on

This commit is contained in:
Mygod
2019-04-07 07:47:04 +08:00
committed by GitHub
parent a693b9ea95
commit a1a42f4703

View File

@@ -163,7 +163,7 @@ 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 onException() = ManageBar.start(parent.context ?: app)
override fun start() = BluetoothTethering.start(this)
override fun stop() {