From 47c5008871538f1cc1f14472b506f92e21f51d70 Mon Sep 17 00:00:00 2001 From: bopol Date: Sat, 21 Mar 2020 16:58:53 +0100 Subject: [PATCH] Change mute button color for more visibility --- .../main/java/org/schabi/newpipe/player/MainVideoPlayer.java | 2 +- app/src/main/res/layout-large-land/activity_main_player.xml | 3 +-- app/src/main/res/layout/activity_main_player.xml | 3 +-- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/app/src/main/java/org/schabi/newpipe/player/MainVideoPlayer.java b/app/src/main/java/org/schabi/newpipe/player/MainVideoPlayer.java index 51dff970f..b5e614bec 100644 --- a/app/src/main/java/org/schabi/newpipe/player/MainVideoPlayer.java +++ b/app/src/main/java/org/schabi/newpipe/player/MainVideoPlayer.java @@ -403,7 +403,7 @@ public final class MainVideoPlayer extends AppCompatActivity } protected void setMuteButton(final ImageButton muteButton, final boolean isMuted) { - muteButton.setColorFilter(ContextCompat.getColor(getApplicationContext(), isMuted ? R.color.white : R.color.gray)); + muteButton.setImageDrawable(ContextCompat.getDrawable(getApplicationContext(), isMuted ? R.drawable.ic_volume_off_white_72dp : R.drawable.ic_volume_up_white_72dp)); } diff --git a/app/src/main/res/layout-large-land/activity_main_player.xml b/app/src/main/res/layout-large-land/activity_main_player.xml index 364790071..1499eec36 100644 --- a/app/src/main/res/layout-large-land/activity_main_player.xml +++ b/app/src/main/res/layout-large-land/activity_main_player.xml @@ -405,8 +405,7 @@ android:src="@drawable/ic_volume_off_white_24dp" android:background="?attr/selectableItemBackground" android:contentDescription="@string/switch_to_background" - tools:ignore="RtlHardcoded" - android:tint="@color/gray"/> + tools:ignore="RtlHardcoded" /> + tools:ignore="RtlHardcoded" />