We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea5b575 commit 9a962bdCopy full SHA for 9a962bd
app/src/main/java/io/pslab/activity/WaveGeneratorActivity.java
@@ -674,7 +674,8 @@ public boolean onCreateOptionsMenu(Menu menu) {
674
public boolean onOptionsItemSelected(MenuItem item) {
675
switch (item.getItemId()) {
676
case android.R.id.home:
677
- produceSoundTask.cancel(true);
+ if(produceSoundTask != null)
678
+ produceSoundTask.cancel(true);
679
produceSoundTask = null;
680
isPlayingSound = false;
681
finish();
0 commit comments