aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorGeorgeNewby <george@newbys.org>2020-02-27 20:36:27 +0000
committerGeorgeNewby <george@newbys.org>2020-02-27 20:36:27 +0000
commit46903ec488cb36683d71ba6e9e52a82be1a50c2e (patch)
treeb66b1f5a3167723b698dfa0eeff4c8260fabd234 /app
parente528158f03f1fb26b75a99180cfd2dac8de96222 (diff)
downloadinfinity-for-reddit-46903ec488cb36683d71ba6e9e52a82be1a50c2e.tar
infinity-for-reddit-46903ec488cb36683d71ba6e9e52a82be1a50c2e.tar.gz
infinity-for-reddit-46903ec488cb36683d71ba6e9e52a82be1a50c2e.tar.bz2
infinity-for-reddit-46903ec488cb36683d71ba6e9e52a82be1a50c2e.tar.lz
infinity-for-reddit-46903ec488cb36683d71ba6e9e52a82be1a50c2e.tar.xz
infinity-for-reddit-46903ec488cb36683d71ba6e9e52a82be1a50c2e.tar.zst
infinity-for-reddit-46903ec488cb36683d71ba6e9e52a82be1a50c2e.zip
Swapped video mute icon
Diffstat (limited to '')
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/Activity/ViewVideoActivity.java12
1 files changed, 6 insertions, 6 deletions
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;