Skip to content

Commit

Permalink
Fix switch statement
Browse files Browse the repository at this point in the history
  • Loading branch information
SebaDro committed May 31, 2024
1 parent c6918f9 commit b90b742
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions android-obd-simulator/src/org/envirocar/obd/OBDSimulator.java
Original file line number Diff line number Diff line change
Expand Up @@ -278,11 +278,10 @@ public boolean onCreateOptionsMenu(Menu menu) {

@Override
public boolean onOptionsItemSelected(MenuItem item) {
switch (item.getItemId()) {
case R.id.discoverable:
// Ensure this device is discoverable by others
ensureDiscoverable();
return true;
if (item.getItemId() == R.id.discoverable) {
// Ensure this device is discoverable by others
ensureDiscoverable();
return true;
}
return false;
}
Expand Down

0 comments on commit b90b742

Please sign in to comment.