Skip to content

Instantly share code, notes, and snippets.

@jlwatkins
Created November 11, 2015 03:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jlwatkins/bedbde22e476582f1851 to your computer and use it in GitHub Desktop.
Save jlwatkins/bedbde22e476582f1851 to your computer and use it in GitHub Desktop.
@Override
public boolean onOptionsItemSelected(MenuItem item) {
switch (item.getItemId()) {
case R.id.muteMenu:
changeMuteStatus
break;
}
return super.onOptionsItemSelected(item);
}
protected void changeMuteStatus() {
if (isMuted()) { //If it's odd UNMUTE
unMute(item);
} else { //If its even MUTE
mute(item);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment