If adapter is disabled, forget that we enabled it.

This commit is contained in:
akwizgran
2020-01-15 17:48:12 +00:00
parent 6b33c5b913
commit 49baf1020b

View File

@@ -148,6 +148,12 @@ class AndroidBluetoothPlugin extends BluetoothPlugin<BluetoothServerSocket> {
wasEnabledByUs = true;
}
@Override
void onAdapterDisabled() {
super.onAdapterDisabled();
wasEnabledByUs = false;
}
@Override
@Nullable
String getBluetoothAddress() {