Skip to content

Commit

Permalink
Fixed: Bluetooth snack bar popup for other ConnectionType
Browse files Browse the repository at this point in the history
  • Loading branch information
umer0586 committed Jan 10, 2025
1 parent e1f44c8 commit 17ce68c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ fun ControlPlayScreenContent(
// solve this issue since its value does not change between successive taps
// unless Bluetooth is enabled.

if(!uiState.isBluetoothEnabled){
if(uiState.connectionType == ConnectionType.BLUETOOTH_LE && !uiState.isBluetoothEnabled){
scope.launch {
snackbarHostState.showSnackbar("Please Enable bluetooth")
}
Expand Down

0 comments on commit 17ce68c

Please sign in to comment.