From d7a90b53970416ae7fe5df34270924fc5191e009 Mon Sep 17 00:00:00 2001 From: Alex Ning Date: Thu, 6 Jun 2019 16:11:22 +0800 Subject: [PATCH] Fixed dark theme in landscape mode. Display the host of the url when the post is a link. --- .../PostRecyclerViewAdapter.java | 50 ++++++++------ app/src/main/res/layout/item_post.xml | 69 +++++++++++-------- app/src/main/res/values-land-v28/styles.xml | 4 +- 3 files changed, 70 insertions(+), 53 deletions(-) diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/PostRecyclerViewAdapter.java b/app/src/main/java/ml/docilealligator/infinityforreddit/PostRecyclerViewAdapter.java index f8607c6c..655f9d81 100644 --- a/app/src/main/java/ml/docilealligator/infinityforreddit/PostRecyclerViewAdapter.java +++ b/app/src/main/java/ml/docilealligator/infinityforreddit/PostRecyclerViewAdapter.java @@ -312,6 +312,9 @@ class PostRecyclerViewAdapter extends PagedListAdapter { CustomTabsIntent.Builder builder = new CustomTabsIntent.Builder(); @@ -360,7 +363,10 @@ class PostRecyclerViewAdapter extends PagedListAdapter { CustomTabsIntent.Builder builder = new CustomTabsIntent.Builder(); @@ -569,27 +575,28 @@ class PostRecyclerViewAdapter extends PagedListAdapter @@ -71,7 +71,7 @@ + + @@ -162,7 +171,7 @@ android:scaleType="fitStart" /> - + \ No newline at end of file