@@ -470,7 +470,6 @@ public boolean onPrepareOptionsMenu(Menu menu) {
470470 stopMenu = menu .findItem (R .id .stop_data );
471471 playMenu .setVisible (isPlayingBack );
472472 menu .findItem (R .id .record_pause_data ).setVisible (!isPlayingBack );
473- menu .findItem (R .id .delete_csv_data ).setVisible (!isPlayingBack );
474473 return super .onPrepareOptionsMenu (menu );
475474 }
476475
@@ -526,18 +525,6 @@ public void onClick(View view) {
526525 CustomSnackBar .showSnackBar (coordinatorLayout , getString (R .string .device_not_found ), null , null , Snackbar .LENGTH_SHORT );
527526 }
528527 break ;
529- case R .id .delete_csv_data :
530- if (isDataRecorded ) {
531- MenuItem item1 = menu .findItem (R .id .record_pause_data );
532- item1 .setIcon (R .drawable .ic_record_white );
533- recordData = false ;
534- isRecordingStarted = false ;
535- isDataRecorded = false ;
536- multimeterLogger .deleteFile ();
537- CustomSnackBar .showSnackBar (coordinatorLayout , getString (R .string .data_deleted ), null , null , Snackbar .LENGTH_SHORT );
538- } else
539- CustomSnackBar .showSnackBar (coordinatorLayout , getString (R .string .nothing_to_delete ), null , null , Snackbar .LENGTH_SHORT );
540- break ;
541528 case R .id .settings :
542529 Intent settingIntent = new Intent (this , SettingsActivity .class );
543530 settingIntent .putExtra ("title" , getResources ().getString (R .string .multimeter_configurations ));
0 commit comments