diff options
author | Alex Ning <chineseperson5@gmail.com> | 2020-05-01 14:07:13 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2020-05-01 14:07:13 +0000 |
commit | 911901cf757811c13739732cd58cc258585765aa (patch) | |
tree | 2f8babd8cc2f50ba489b696ab3864ec270f9ae97 /app/src/main/java | |
parent | a88f43ff38bd441b945110cf3f2f8c5a7883458b (diff) | |
download | infinity-for-reddit-911901cf757811c13739732cd58cc258585765aa.tar infinity-for-reddit-911901cf757811c13739732cd58cc258585765aa.tar.gz infinity-for-reddit-911901cf757811c13739732cd58cc258585765aa.tar.bz2 infinity-for-reddit-911901cf757811c13739732cd58cc258585765aa.tar.lz infinity-for-reddit-911901cf757811c13739732cd58cc258585765aa.tar.xz infinity-for-reddit-911901cf757811c13739732cd58cc258585765aa.tar.zst infinity-for-reddit-911901cf757811c13739732cd58cc258585765aa.zip |
Beautify player control view for video autoplay.
Diffstat (limited to '')
-rw-r--r-- | app/src/main/java/ml/docilealligator/infinityforreddit/Adapter/PostRecyclerViewAdapter.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/Adapter/PostRecyclerViewAdapter.java b/app/src/main/java/ml/docilealligator/infinityforreddit/Adapter/PostRecyclerViewAdapter.java index 26a2522c..c474a710 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/Adapter/PostRecyclerViewAdapter.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/Adapter/PostRecyclerViewAdapter.java @@ -1848,7 +1848,7 @@ public class PostRecyclerViewAdapter extends PagedListAdapter<Post, RecyclerView @BindView(R.id.player_view_item_post_video_type_autoplay) PlayerView videoPlayer; @BindView(R.id.mute_exo_playback_control_view) - ImageButton muteButton; + ImageView muteButton; @BindView(R.id.bottom_constraint_layout_item_post_video_type_autoplay) ConstraintLayout bottomConstraintLayout; @BindView(R.id.plus_button_item_post_video_type_autoplay) @@ -1900,11 +1900,11 @@ public class PostRecyclerViewAdapter extends PagedListAdapter<Post, RecyclerView muteButton.setOnClickListener(view -> { if (helper != null) { if (helper.getVolume() != 0) { - muteButton.setImageDrawable(mActivity.getDrawable(R.drawable.ic_mute_24dp)); + muteButton.setImageDrawable(mActivity.getDrawable(R.drawable.ic_mute_white_rounded_18dp)); helper.setVolume(0f); volume = 0f; } else { - muteButton.setImageDrawable(mActivity.getDrawable(R.drawable.ic_unmute_24dp)); + muteButton.setImageDrawable(mActivity.getDrawable(R.drawable.ic_unmute_white_rounded_18dp)); helper.setVolume(1f); volume = 1f; } @@ -1942,9 +1942,9 @@ public class PostRecyclerViewAdapter extends PagedListAdapter<Post, RecyclerView helper.setVolume(volume); muteButton.setVisibility(View.VISIBLE); if (volume != 0f) { - muteButton.setImageDrawable(mActivity.getDrawable(R.drawable.ic_unmute_24dp)); + muteButton.setImageDrawable(mActivity.getDrawable(R.drawable.ic_unmute_white_rounded_18dp)); } else { - muteButton.setImageDrawable(mActivity.getDrawable(R.drawable.ic_mute_24dp)); + muteButton.setImageDrawable(mActivity.getDrawable(R.drawable.ic_mute_white_rounded_18dp)); } break; } |