@Override
 public void onClick(View view) {
   switch (view.getId()) {
     case R.id.top_bar:
       Intents.thresholdsEditor(this, sensorManager.getVisibleSensor());
       break;
     case R.id.note_save:
       saveNote();
       break;
     case R.id.note_delete:
       deleteNote();
       break;
     case R.id.note_left:
       noteClicked(noteIndex - 1);
       break;
     case R.id.note_right:
       noteClicked(noteIndex + 1);
       break;
     case R.id.gauge_container:
       showDialog(SelectSensorHelper.DIALOG_ID);
       break;
     case R.id.view_photo:
       Intents.viewPhoto(this, photoUri());
       break;
     default:
       super.onClick(view);
       break;
   }
 }
 protected void initializeNoteViewer() {
   if (noteIndex == -1) {
     hideNoteViewer();
   } else {
     noteClicked(noteIndex);
   }
 }