Created
November 11, 2015 03:32
-
-
Save jlwatkins/bedbde22e476582f1851 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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