diff options
author | Alex Ning <chineseperson5@gmail.com> | 2020-07-09 02:51:24 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2020-07-09 02:51:24 +0000 |
commit | 45f6ba553251a1920ce8688c20679b9504389e30 (patch) | |
tree | 0e135319fbec5cd212ffddb3e54ea50cfb5ff9b2 /app/src/main/res/layout | |
parent | 6f34d854ea7552fadd9b22e934b45cd86ebc162b (diff) | |
download | infinity-for-reddit-45f6ba553251a1920ce8688c20679b9504389e30.tar infinity-for-reddit-45f6ba553251a1920ce8688c20679b9504389e30.tar.gz infinity-for-reddit-45f6ba553251a1920ce8688c20679b9504389e30.tar.bz2 infinity-for-reddit-45f6ba553251a1920ce8688c20679b9504389e30.tar.lz infinity-for-reddit-45f6ba553251a1920ce8688c20679b9504389e30.tar.xz infinity-for-reddit-45f6ba553251a1920ce8688c20679b9504389e30.tar.zst infinity-for-reddit-45f6ba553251a1920ce8688c20679b9504389e30.zip |
Add an option to mute nsfw videos. Show preview before autoplaying videos in CommentAndPostRecyclerViewAdapter.
Diffstat (limited to 'app/src/main/res/layout')
-rw-r--r-- | app/src/main/res/layout/item_post_detail_video_autoplay.xml | 14 | ||||
-rw-r--r-- | app/src/main/res/layout/item_post_video_type_autoplay.xml | 2 |
2 files changed, 8 insertions, 8 deletions
diff --git a/app/src/main/res/layout/item_post_detail_video_autoplay.xml b/app/src/main/res/layout/item_post_detail_video_autoplay.xml index b8b75860..9d8e8590 100644 --- a/app/src/main/res/layout/item_post_detail_video_autoplay.xml +++ b/app/src/main/res/layout/item_post_detail_video_autoplay.xml @@ -202,19 +202,19 @@ android:background="#000000" app:resize_mode="fixed_width"> - <ImageView - android:id="@+id/preview_image_view_item_post_detail_video_autoplay" - android:layout_width="match_parent" - android:layout_height="match_parent" - android:scaleType="fitStart" - android:visibility="gone" /> - <com.google.android.exoplayer2.ui.PlayerView android:id="@+id/player_view_item_post_detail_video_autoplay" android:layout_width="match_parent" android:layout_height="match_parent" app:controller_layout_id="@layout/exo_autoplay_playback_control_view"/> + <pl.droidsonroids.gif.GifImageView + android:id="@+id/preview_image_view_item_post_detail_video_autoplay" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:scaleType="fitStart" + android:visibility="gone" /> + </com.google.android.exoplayer2.ui.AspectRatioFrameLayout> <androidx.constraintlayout.widget.ConstraintLayout diff --git a/app/src/main/res/layout/item_post_video_type_autoplay.xml b/app/src/main/res/layout/item_post_video_type_autoplay.xml index c5713565..6f0648b9 100644 --- a/app/src/main/res/layout/item_post_video_type_autoplay.xml +++ b/app/src/main/res/layout/item_post_video_type_autoplay.xml @@ -208,7 +208,7 @@ android:layout_height="match_parent" app:controller_layout_id="@layout/exo_autoplay_playback_control_view" /> - <ImageView + <pl.droidsonroids.gif.GifImageView android:id="@+id/preview_image_view_item_post_video_type_autoplay" android:layout_width="match_parent" android:layout_height="match_parent" |