diff options
author | Docile-Alligator <25734209+Docile-Alligator@users.noreply.github.com> | 2023-09-23 23:10:19 +0000 |
---|---|---|
committer | Docile-Alligator <25734209+Docile-Alligator@users.noreply.github.com> | 2023-09-23 23:10:19 +0000 |
commit | 8a626753cd9cb503671b6f843b109c3476028baa (patch) | |
tree | 45267a46d542a6a0a940e990051eaf5a6c011092 /app/src/main/java/ml | |
parent | e5b65a5aecdeb0d6a5c4eb7cbfd06c29eb7ac75b (diff) | |
download | infinity-for-reddit-8a626753cd9cb503671b6f843b109c3476028baa.tar infinity-for-reddit-8a626753cd9cb503671b6f843b109c3476028baa.tar.gz infinity-for-reddit-8a626753cd9cb503671b6f843b109c3476028baa.tar.bz2 infinity-for-reddit-8a626753cd9cb503671b6f843b109c3476028baa.tar.lz infinity-for-reddit-8a626753cd9cb503671b6f843b109c3476028baa.tar.xz infinity-for-reddit-8a626753cd9cb503671b6f843b109c3476028baa.tar.zst infinity-for-reddit-8a626753cd9cb503671b6f843b109c3476028baa.zip |
Changed video control UI.
Diffstat (limited to 'app/src/main/java/ml')
-rw-r--r-- | app/src/main/java/ml/docilealligator/infinityforreddit/activities/ViewVideoActivity.java | 11 |
1 files changed, 8 insertions, 3 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 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; |