aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java/ml
diff options
context:
space:
mode:
authorDocile-Alligator <chineseperson5@gmail.com>2020-03-03 09:38:28 +0000
committerGitHub <noreply@github.com>2020-03-03 09:38:28 +0000
commitb101e4c87d78c880fca6971319daddd05470f0db (patch)
treee0ac53178d0bd88e7fd8610cc6191e3daba227dd /app/src/main/java/ml
parentad5e4df6e8f2cd747e55d55782a005db7337bbe1 (diff)
parent46903ec488cb36683d71ba6e9e52a82be1a50c2e (diff)
downloadinfinity-for-reddit-b101e4c87d78c880fca6971319daddd05470f0db.tar
infinity-for-reddit-b101e4c87d78c880fca6971319daddd05470f0db.tar.gz
infinity-for-reddit-b101e4c87d78c880fca6971319daddd05470f0db.tar.bz2
infinity-for-reddit-b101e4c87d78c880fca6971319daddd05470f0db.tar.lz
infinity-for-reddit-b101e4c87d78c880fca6971319daddd05470f0db.tar.xz
infinity-for-reddit-b101e4c87d78c880fca6971319daddd05470f0db.tar.zst
infinity-for-reddit-b101e4c87d78c880fca6971319daddd05470f0db.zip
Merge pull request #67 from GeorgeNewby/master
Swapped video mute icon
Diffstat (limited to 'app/src/main/java/ml')
-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 3ed60d5c..935538e7 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;