aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDocile-Alligator <25734209+Docile-Alligator@users.noreply.github.com>2024-05-12 22:43:06 +0000
committerDocile-Alligator <25734209+Docile-Alligator@users.noreply.github.com>2024-05-12 22:43:06 +0000
commit4abb494709e36bba2b384258e9cb36aaa3494a34 (patch)
tree7b623ce623153e19aa951662525dfc2bce1e2014
parent3f6842f27ac8bd406647c58c0cc640779b1bb15e (diff)
downloadinfinity-for-reddit-4abb494709e36bba2b384258e9cb36aaa3494a34.tar
infinity-for-reddit-4abb494709e36bba2b384258e9cb36aaa3494a34.tar.gz
infinity-for-reddit-4abb494709e36bba2b384258e9cb36aaa3494a34.tar.bz2
infinity-for-reddit-4abb494709e36bba2b384258e9cb36aaa3494a34.tar.lz
infinity-for-reddit-4abb494709e36bba2b384258e9cb36aaa3494a34.tar.xz
infinity-for-reddit-4abb494709e36bba2b384258e9cb36aaa3494a34.tar.zst
infinity-for-reddit-4abb494709e36bba2b384258e9cb36aaa3494a34.zip
Fix app crashes when going into ViewVideoActivity, ViewImgurVideoFragment and ViewRedditGalleryVideoFragment.
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewVideoActivity.java2
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/fragments/ViewImgurVideoFragment.java2
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/fragments/ViewRedditGalleryVideoFragment.java2
-rw-r--r--app/src/main/res/layout/exo_playback_control_view.xml6
4 files changed, 6 insertions, 6 deletions
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewVideoActivity.java b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewVideoActivity.java
index fc9562e0..882801fa 100644
--- a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewVideoActivity.java
+++ b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewVideoActivity.java
@@ -487,7 +487,7 @@ public class ViewVideoActivity extends AppCompatActivity implements CustomFontRe
});
}
- MaterialButton playPauseButton = findViewById(R.id.exo_play_pause);
+ MaterialButton playPauseButton = findViewById(R.id.exo_play_pause_button_exo_playback_control_view);
Drawable playDrawable = ResourcesCompat.getDrawable(getResources(), R.drawable.ic_play_arrow_24dp, null);
Drawable pauseDrawable = ResourcesCompat.getDrawable(getResources(), R.drawable.ic_pause_24dp, null);
playPauseButton.setOnClickListener(view -> {
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/fragments/ViewImgurVideoFragment.java b/app/src/main/java/ml/docilealligator/infinityforreddit/fragments/ViewImgurVideoFragment.java
index c52ab690..199d5178 100644
--- a/app/src/main/java/ml/docilealligator/infinityforreddit/fragments/ViewImgurVideoFragment.java
+++ b/app/src/main/java/ml/docilealligator/infinityforreddit/fragments/ViewImgurVideoFragment.java
@@ -289,7 +289,7 @@ public class ViewImgurVideoFragment extends Fragment {
binding.getMuteButton().setIconResource(R.drawable.ic_unmute_24dp);
}
- MaterialButton playPauseButton = binding.getRoot().findViewById(R.id.exo_play_pause);
+ MaterialButton playPauseButton = binding.getRoot().findViewById(R.id.exo_play_pause_button_exo_playback_control_view);
Drawable playDrawable = ResourcesCompat.getDrawable(getResources(), R.drawable.ic_play_arrow_24dp, null);
Drawable pauseDrawable = ResourcesCompat.getDrawable(getResources(), R.drawable.ic_pause_24dp, null);
playPauseButton.setOnClickListener(view -> {
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/fragments/ViewRedditGalleryVideoFragment.java b/app/src/main/java/ml/docilealligator/infinityforreddit/fragments/ViewRedditGalleryVideoFragment.java
index f597068a..e91c5805 100644
--- a/app/src/main/java/ml/docilealligator/infinityforreddit/fragments/ViewRedditGalleryVideoFragment.java
+++ b/app/src/main/java/ml/docilealligator/infinityforreddit/fragments/ViewRedditGalleryVideoFragment.java
@@ -290,7 +290,7 @@ public class ViewRedditGalleryVideoFragment extends Fragment {
binding.getMuteButton().setImageResource(R.drawable.ic_unmute_24dp);
}
- MaterialButton playPauseButton = binding.getRoot().findViewById(R.id.exo_play_pause);
+ MaterialButton playPauseButton = binding.getRoot().findViewById(R.id.exo_play_pause_button_exo_playback_control_view);
Drawable playDrawable = ResourcesCompat.getDrawable(getResources(), R.drawable.ic_play_arrow_24dp, null);
Drawable pauseDrawable = ResourcesCompat.getDrawable(getResources(), R.drawable.ic_pause_24dp, null);
playPauseButton.setOnClickListener(view -> {
diff --git a/app/src/main/res/layout/exo_playback_control_view.xml b/app/src/main/res/layout/exo_playback_control_view.xml
index 47ef6ff1..d4b5dba5 100644
--- a/app/src/main/res/layout/exo_playback_control_view.xml
+++ b/app/src/main/res/layout/exo_playback_control_view.xml
@@ -55,14 +55,14 @@
app:backgroundTint="#444141"
app:layout_constraintTop_toTopOf="parent"
app:layout_constraintBottom_toBottomOf="parent"
- app:layout_constraintEnd_toStartOf="@+id/exo_play_pause"
+ app:layout_constraintEnd_toStartOf="@+id/exo_play_pause_button_exo_playback_control_view"
app:layout_constraintHorizontal_bias="0.5"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintHorizontal_chainStyle="packed"
style="?attr/materialIconButtonOutlinedStyle" />
<com.google.android.material.button.MaterialButton
- android:id="@+id/exo_play_pause"
+ android:id="@+id/exo_play_pause_button_exo_playback_control_view"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
app:strokeWidth="0dp"
@@ -90,7 +90,7 @@
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintHorizontal_bias="0.5"
- app:layout_constraintStart_toEndOf="@+id/exo_play_pause"
+ app:layout_constraintStart_toEndOf="@+id/exo_play_pause_button_exo_playback_control_view"
style="?attr/materialIconButtonOutlinedStyle" />
<com.google.android.material.button.MaterialButton