If adapter is disabled, forget that we enabled it.

This commit is contained in:
akwizgran
2020-01-15 17:48:12 +00:00
parent 850ad18a36
commit 1e7a1670dd

View File

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