Skip to content

Commit

Permalink
fix: bluetooth adapter listener state during cubit initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
mediocre9 committed Jan 7, 2024
1 parent c6c3694 commit 53c8bdd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class BluetoothHomeCubit extends Cubit<BluetoothHomeState> {
}

Future _init() async {
if (await _handlePermissions() && (await bluetooth.isEnabled())!) {
if (await _handlePermissions()) {
await _startBluetoothAdapterListener();
await _getPairedDevices();
}
Expand Down

0 comments on commit 53c8bdd

Please sign in to comment.