Skip to content

Commit

Permalink
Merge pull request #3283 from Stypox/fix-mute-button
Browse files Browse the repository at this point in the history
Fix mute button inflation problems on API<21
  • Loading branch information
TobiGr authored Mar 28, 2020
2 parents d051df9 + f9b718f commit 40de014
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,8 @@ protected void setShuffleButton(final ImageButton shuffleButton, final boolean s
}

protected void setMuteButton(final ImageButton muteButton, final boolean isMuted) {
muteButton.setImageDrawable(ContextCompat.getDrawable(getApplicationContext(), isMuted ? R.drawable.ic_volume_off_white_72dp : R.drawable.ic_volume_up_white_72dp));
muteButton.setImageDrawable(AppCompatResources.getDrawable(getApplicationContext(),
isMuted ? R.drawable.ic_volume_off_white_72dp : R.drawable.ic_volume_up_white_72dp));
}


Expand Down

0 comments on commit 40de014

Please sign in to comment.