Skip to content

Commit

Permalink
fix: don't forget menu state when Fragment is changed in Oscilloscope (
Browse files Browse the repository at this point in the history
  • Loading branch information
marcnause authored Nov 10, 2024
1 parent 3cf6349 commit 49680a2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/src/main/java/io/pslab/activity/OscilloscopeActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,8 @@ public boolean onPrepareOptionsMenu(Menu menu) {
playMenu = menu.findItem(R.id.play_data);
menu.findItem(R.id.record_pause_data).setVisible(!isPlayingback);
menu.findItem(R.id.play_data).setVisible(isPlayingback);
menu.findItem(R.id.measurements).setChecked(isMeasurementsChecked);
menu.findItem(R.id.run_stop).setTitle(isRunning ? R.string.control_stop : R.string.control_run);
return super.onPrepareOptionsMenu(menu);
}

Expand Down

0 comments on commit 49680a2

Please sign in to comment.