If adapter is disabled, forget that we enabled it.

This commit is contained in:
akwizgran
2020-01-15 17:48:12 +00:00
parent afc85cdf52
commit e2d63ac6a4

View File

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