Skip to content

Instantly share code, notes, and snippets.

@digitallysavvy
Last active May 9, 2019 16:47
Show Gist options
  • Save digitallysavvy/fcd19e5fa183e14cc007297a271ca7e2 to your computer and use it in GitHub Desktop.
Save digitallysavvy/fcd19e5fa183e14cc007297a271ca7e2 to your computer and use it in GitHub Desktop.
public void onAudioMuteClicked(View view) {
ImageView btn = (ImageView) view;
if (btn.isSelected()) {
btn.setSelected(false);
btn.setImageResource(R.drawable.audio_toggle_btn);
} else {
btn.setSelected(true);
btn.setImageResource(R.drawable.audio_toggle_active_btn);
}
mRtcEngine.muteLocalAudioStream(btn.isSelected());
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment