Change mute button color for more visibility

This commit is contained in:
bopol 2020-03-21 16:58:53 +01:00
parent fb3290e870
commit 47c5008871
3 changed files with 3 additions and 5 deletions

View File

@ -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));
}

View File

@ -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" />
</RelativeLayout>
<LinearLayout

View File

@ -403,8 +403,7 @@
app:srcCompat="@drawable/ic_volume_off_white_72dp"
android:background="?attr/selectableItemBackground"
android:contentDescription="@string/switch_to_background"
tools:ignore="RtlHardcoded"
android:tint="@color/gray"/>
tools:ignore="RtlHardcoded" />
</RelativeLayout>