From e78e79a9a9bbc731f1a829d782828980e80241bd Mon Sep 17 00:00:00 2001 From: cpfeiffer Date: Mon, 8 Jun 2015 23:30:51 +0200 Subject: [PATCH] Added missing returns.. --- .../nodomain/freeyourgadget/gadgetbridge/ControlCenter.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/ControlCenter.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/ControlCenter.java index 9c4dbe62e..3a82649a2 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/ControlCenter.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/ControlCenter.java @@ -177,6 +177,7 @@ public class ControlCenter extends Activity { case R.id.controlcenter_start_sleepmonitor: if (selectedDevice != null) { Intent startIntent = new Intent(ControlCenter.this, SleepMonitorActivity.class); +// Intent startIntent = new Intent(ControlCenter.this, AbstractChartActivity.class); startIntent.putExtra("device", selectedDevice); startActivity(startIntent); } @@ -187,6 +188,7 @@ public class ControlCenter extends Activity { startIntent.setAction(BluetoothCommunicationService.ACTION_FETCH_ACTIVITY_DATA); startService(startIntent); } + return true; case R.id.controlcenter_disconnect: if (selectedDevice != null) { selectedDevice = null; @@ -194,6 +196,7 @@ public class ControlCenter extends Activity { startIntent.setAction(BluetoothCommunicationService.ACTION_DISCONNECT); startService(startIntent); } + return true; default: return super.onContextItemSelected(item); }