Fix missing unregister

This commit is contained in:
Mygod
2019-03-18 22:03:20 +08:00
parent 0fdfc72f5f
commit 16688ebe7d

View File

@@ -93,6 +93,7 @@ class BluetoothTethering(context: Context, val stateListener: (Int) -> Unit) :
pan = proxy
}
override fun close() {
app.unregisterReceiver(receiver)
BluetoothAdapter.getDefaultAdapter()?.closeProfileProxy(PAN, pan)
pan = null
}