From 8a626753cd9cb503671b6f843b109c3476028baa Mon Sep 17 00:00:00 2001 From: Docile-Alligator <25734209+Docile-Alligator@users.noreply.github.com> Date: Sat, 23 Sep 2023 19:10:19 -0400 Subject: Changed video control UI. --- .../infinityforreddit/activities/ViewVideoActivity.java | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'app/src/main/java/ml') 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 5072d96c..9d4e4366 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewVideoActivity.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewVideoActivity.java @@ -29,7 +29,6 @@ import android.view.MenuItem; import android.view.OrientationEventListener; import android.view.View; import android.view.ViewGroup; -import android.widget.ImageView; import android.widget.LinearLayout; import android.widget.ProgressBar; import android.widget.TextView; @@ -168,10 +167,12 @@ public class ViewVideoActivity extends AppCompatActivity implements CustomFontRe BottomAppBar bottomAppBar; @BindView(R.id.title_text_view_exo_playback_control_view) TextView titleTextView; + @BindView(R.id.back_button_exo_playback_control_view) + MaterialButton backButton; @BindView(R.id.download_image_view_exo_playback_control_view) - ImageView downloadImageView; + MaterialButton downloadImageView; @BindView(R.id.playback_speed_image_view_exo_playback_control_view) - ImageView playbackSpeedImageView; + MaterialButton playbackSpeedImageView; @BindView(R.id.lockable_nested_scroll_view_view_video_activity) LockableNestedScrollView nestedScrollView; @@ -311,6 +312,10 @@ public class ViewVideoActivity extends AppCompatActivity implements CustomFontRe if (useBottomAppBar) { getSupportActionBar().hide(); bottomAppBar.setVisibility(View.VISIBLE); + backButton.setOnClickListener(view -> { + finish(); + }); + downloadImageView.setOnClickListener(view -> { if (isDownloading) { return; -- cgit v1.2.3