aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2020-04-30 03:24:34 +0000
committerAlex Ning <chineseperson5@gmail.com>2020-04-30 03:24:34 +0000
commit5c053501192e0d9da87d7823c910e79d01cddafc (patch)
tree41879fd787759ed7099753f716f1fa15a0078fd5 /app/src/main/res
parent033c8bd24184258904f68bee13b96b6c491fec05 (diff)
downloadinfinity-for-reddit-5c053501192e0d9da87d7823c910e79d01cddafc.tar
infinity-for-reddit-5c053501192e0d9da87d7823c910e79d01cddafc.tar.gz
infinity-for-reddit-5c053501192e0d9da87d7823c910e79d01cddafc.tar.bz2
infinity-for-reddit-5c053501192e0d9da87d7823c910e79d01cddafc.tar.lz
infinity-for-reddit-5c053501192e0d9da87d7823c910e79d01cddafc.tar.xz
infinity-for-reddit-5c053501192e0d9da87d7823c910e79d01cddafc.tar.zst
infinity-for-reddit-5c053501192e0d9da87d7823c910e79d01cddafc.zip
Move onClickListeners to ViewHolders in PostRecyclerViewAdapter. Pause video after fragment pause.
Diffstat (limited to 'app/src/main/res')
-rw-r--r--app/src/main/res/layout/activity_view_gif.xml3
-rw-r--r--app/src/main/res/layout/activity_view_video.xml2
-rw-r--r--app/src/main/res/layout/fragment_post.xml2
-rw-r--r--app/src/main/res/layout/item_post_video_type_autoplay.xml2
4 files changed, 6 insertions, 3 deletions
diff --git a/app/src/main/res/layout/activity_view_gif.xml b/app/src/main/res/layout/activity_view_gif.xml
index 8740679c..cce51370 100644
--- a/app/src/main/res/layout/activity_view_gif.xml
+++ b/app/src/main/res/layout/activity_view_gif.xml
@@ -5,7 +5,8 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/parent_relative_layout_view_gif_activity"
- android:background="@android:color/black"
+ android:background="#000000"
+ android:keepScreenOn="true"
tools:application="ml.docilealligator.infinityforreddit.Activity.ViewGIFActivity">
<ProgressBar
diff --git a/app/src/main/res/layout/activity_view_video.xml b/app/src/main/res/layout/activity_view_video.xml
index 906770fe..8f23ea26 100644
--- a/app/src/main/res/layout/activity_view_video.xml
+++ b/app/src/main/res/layout/activity_view_video.xml
@@ -4,7 +4,7 @@
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
- android:background="@android:color/black"
+ android:background="#000000"
android:id="@+id/relative_layout_view_video_activity"
android:keepScreenOn="true"
tools:application="ml.docilealligator.infinityforreddit.Activity.ViewVideoActivity">
diff --git a/app/src/main/res/layout/fragment_post.xml b/app/src/main/res/layout/fragment_post.xml
index dc3248b5..69652bbc 100644
--- a/app/src/main/res/layout/fragment_post.xml
+++ b/app/src/main/res/layout/fragment_post.xml
@@ -16,7 +16,7 @@
android:layout_height="match_parent"
android:clipToPadding="false" />-->
- <im.ene.toro.widget.Container
+ <ml.docilealligator.infinityforreddit.CustomView.CustomToroContainer
android:id="@+id/recycler_view_post_fragment"
android:layout_width="match_parent"
android:layout_height="match_parent"
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 2f1c078a..138090d8 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
@@ -109,6 +109,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="4dp"
+ android:text="@string/video"
android:textSize="?attr/font_12"
app:lib_setRadius="3dp"
app:lib_setRoundedView="true"
@@ -189,6 +190,7 @@
android:id="@+id/aspect"
android:layout_width="match_parent"
android:layout_height="0dp"
+ android:background="#000000"
app:resize_mode="fixed_width">
<com.google.android.exoplayer2.ui.PlayerView