From 354a215209d3181ec6d233164f457a1266f05afb Mon Sep 17 00:00:00 2001 From: Alex Ning Date: Tue, 10 Sep 2019 16:41:54 +0800 Subject: Load HLS video instead of Dash video to support older Android versions. Fixed app crashes on opening video or images on older Android versions. --- .../CommentAndPostRecyclerViewAdapter.java | 4 ++-- .../infinityforreddit/JSONUtils.java | 2 +- .../infinityforreddit/ParsePost.java | 6 +++--- .../ml/docilealligator/infinityforreddit/Post.java | 14 +++++++------- .../infinityforreddit/PostRecyclerViewAdapter.java | 4 ++-- .../infinityforreddit/ViewImageActivity.java | 4 ++-- .../infinityforreddit/ViewVideoActivity.java | 21 ++++++++++----------- .../main/res/layout/exo_playback_control_view.xml | 2 +- app/src/main/res/values-night/colors.xml | 2 +- app/src/main/res/values/colors.xml | 2 +- app/src/main/res/values/styles.xml | 9 +-------- 11 files changed, 31 insertions(+), 39 deletions(-) (limited to 'app') diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/CommentAndPostRecyclerViewAdapter.java b/app/src/main/java/ml/docilealligator/infinityforreddit/CommentAndPostRecyclerViewAdapter.java index c20177b9..c4595c5e 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/CommentAndPostRecyclerViewAdapter.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/CommentAndPostRecyclerViewAdapter.java @@ -429,7 +429,7 @@ class CommentAndPostRecyclerViewAdapter extends RecyclerView.Adapter #E91E63 - #88000000 + #88000000 #FFC107 diff --git a/app/src/main/res/values/colors.xml b/app/src/main/res/values/colors.xml index 42b7bc1c..6c8a40b5 100644 --- a/app/src/main/res/values/colors.xml +++ b/app/src/main/res/values/colors.xml @@ -4,7 +4,7 @@ #0D47A1 #FF4081 - #88000000 + #88000000 #FFC107 diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml index e4119c67..0b7ea5c2 100644 --- a/app/src/main/res/values/styles.xml +++ b/app/src/main/res/values/styles.xml @@ -28,7 +28,7 @@ @@ -37,13 +37,6 @@ -