1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2024-12-16 05:41:30 +01:00

Merge pull request #3283 from Stypox/fix-mute-button

Fix mute button inflation problems on API<21
This commit is contained in:
Tobias Groza 2020-03-28 18:38:36 +01:00 committed by GitHub
commit 40de014732
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -403,7 +403,8 @@ public final class MainVideoPlayer extends AppCompatActivity
}
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));
}