From 46903ec488cb36683d71ba6e9e52a82be1a50c2e Mon Sep 17 00:00:00 2001 From: GeorgeNewby Date: Thu, 27 Feb 2020 20:36:27 +0000 Subject: Swapped video mute icon --- .../infinityforreddit/Activity/ViewVideoActivity.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'app') diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/Activity/ViewVideoActivity.java b/app/src/main/java/ml/docilealligator/infinityforreddit/Activity/ViewVideoActivity.java index 6a2a4fdc..fc38edeb 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/Activity/ViewVideoActivity.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/Activity/ViewVideoActivity.java @@ -318,17 +318,17 @@ public class ViewVideoActivity extends AppCompatActivity { isMute = savedInstanceState.getBoolean(IS_MUTE_STATE); if (isMute) { player.setVolume(0f); - muteButton.setImageResource(R.drawable.ic_unmute_24dp); + muteButton.setImageResource(R.drawable.ic_mute_24dp); } else { player.setVolume(1f); - muteButton.setImageResource(R.drawable.ic_mute_24dp); + muteButton.setImageResource(R.drawable.ic_unmute_24dp); } } else if (muteVideo) { isMute = true; player.setVolume(0f); - muteButton.setImageResource(R.drawable.ic_unmute_24dp); - } else { muteButton.setImageResource(R.drawable.ic_mute_24dp); + } else { + muteButton.setImageResource(R.drawable.ic_unmute_24dp); } player.addListener(new Player.EventListener() { @@ -343,11 +343,11 @@ public class ViewVideoActivity extends AppCompatActivity { if (isMute) { isMute = false; player.setVolume(1f); - muteButton.setImageResource(R.drawable.ic_mute_24dp); + muteButton.setImageResource(R.drawable.ic_unmute_24dp); } else { isMute = true; player.setVolume(0f); - muteButton.setImageResource(R.drawable.ic_unmute_24dp); + muteButton.setImageResource(R.drawable.ic_mute_24dp); } }); break; -- cgit v1.2.3