aboutsummaryrefslogtreecommitdiff
path: root/app/src
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2021-02-22 08:00:20 +0000
committerAlex Ning <chineseperson5@gmail.com>2021-02-22 08:00:20 +0000
commit947be2101deef03bf521f6d8210f3adee8f2283e (patch)
tree046981d9846653dfbd2a4e1450868c2e511ebfda /app/src
parent6c67fda7cf4e5d9a4c600327cd74633a52e64622 (diff)
downloadinfinity-for-reddit-947be2101deef03bf521f6d8210f3adee8f2283e.tar
infinity-for-reddit-947be2101deef03bf521f6d8210f3adee8f2283e.tar.gz
infinity-for-reddit-947be2101deef03bf521f6d8210f3adee8f2283e.tar.bz2
infinity-for-reddit-947be2101deef03bf521f6d8210f3adee8f2283e.tar.lz
infinity-for-reddit-947be2101deef03bf521f6d8210f3adee8f2283e.tar.xz
infinity-for-reddit-947be2101deef03bf521f6d8210f3adee8f2283e.tar.zst
infinity-for-reddit-947be2101deef03bf521f6d8210f3adee8f2283e.zip
Fix invisible link icon in PostTypeBottomSheetFragment.
Diffstat (limited to '')
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/adapters/PostRecyclerViewAdapter.java2
-rw-r--r--app/src/main/res/drawable-night/ic_link.xml2
-rw-r--r--app/src/main/res/drawable-night/ic_link_post_type_indicator.xml9
-rw-r--r--app/src/main/res/drawable/ic_link.xml2
-rw-r--r--app/src/main/res/drawable/ic_link_post_type_indicator.xml9
5 files changed, 21 insertions, 3 deletions
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/PostRecyclerViewAdapter.java b/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/PostRecyclerViewAdapter.java
index b9762c50..09bb8e27 100644
--- a/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/PostRecyclerViewAdapter.java
+++ b/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/PostRecyclerViewAdapter.java
@@ -1316,7 +1316,7 @@ public class PostRecyclerViewAdapter extends PagedListAdapter<Post, RecyclerView
((PostGalleryViewHolder) holder).imageView.setVisibility(View.VISIBLE);
((PostGalleryViewHolder) holder).progressBar.setVisibility(View.VISIBLE);
((PostGalleryViewHolder) holder).videoOrGifIndicatorImageView.setVisibility(View.VISIBLE);
- ((PostGalleryViewHolder) holder).videoOrGifIndicatorImageView.setImageDrawable(mActivity.getDrawable(R.drawable.ic_link));
+ ((PostGalleryViewHolder) holder).videoOrGifIndicatorImageView.setImageDrawable(mActivity.getDrawable(R.drawable.ic_link_post_type_indicator));
Post.Preview preview = getSuitablePreview(post.getPreviews());
if (preview != null) {
diff --git a/app/src/main/res/drawable-night/ic_link.xml b/app/src/main/res/drawable-night/ic_link.xml
index 4b447423..720bb7c5 100644
--- a/app/src/main/res/drawable-night/ic_link.xml
+++ b/app/src/main/res/drawable-night/ic_link.xml
@@ -4,6 +4,6 @@
android:viewportWidth="24"
android:viewportHeight="24">
<path
- android:fillColor="#000000"
+ android:fillColor="#FFFFFF"
android:pathData="M17,7h-4v2h4c1.65,0 3,1.35 3,3s-1.35,3 -3,3h-4v2h4c2.76,0 5,-2.24 5,-5s-2.24,-5 -5,-5zM11,15L7,15c-1.65,0 -3,-1.35 -3,-3s1.35,-3 3,-3h4L11,7L7,7c-2.76,0 -5,2.24 -5,5s2.24,5 5,5h4v-2zM8,11h8v2L8,13z"/>
</vector>
diff --git a/app/src/main/res/drawable-night/ic_link_post_type_indicator.xml b/app/src/main/res/drawable-night/ic_link_post_type_indicator.xml
new file mode 100644
index 00000000..4b447423
--- /dev/null
+++ b/app/src/main/res/drawable-night/ic_link_post_type_indicator.xml
@@ -0,0 +1,9 @@
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="24dp"
+ android:height="24dp"
+ android:viewportWidth="24"
+ android:viewportHeight="24">
+ <path
+ android:fillColor="#000000"
+ android:pathData="M17,7h-4v2h4c1.65,0 3,1.35 3,3s-1.35,3 -3,3h-4v2h4c2.76,0 5,-2.24 5,-5s-2.24,-5 -5,-5zM11,15L7,15c-1.65,0 -3,-1.35 -3,-3s1.35,-3 3,-3h4L11,7L7,7c-2.76,0 -5,2.24 -5,5s2.24,5 5,5h4v-2zM8,11h8v2L8,13z"/>
+</vector>
diff --git a/app/src/main/res/drawable/ic_link.xml b/app/src/main/res/drawable/ic_link.xml
index 720bb7c5..4b447423 100644
--- a/app/src/main/res/drawable/ic_link.xml
+++ b/app/src/main/res/drawable/ic_link.xml
@@ -4,6 +4,6 @@
android:viewportWidth="24"
android:viewportHeight="24">
<path
- android:fillColor="#FFFFFF"
+ android:fillColor="#000000"
android:pathData="M17,7h-4v2h4c1.65,0 3,1.35 3,3s-1.35,3 -3,3h-4v2h4c2.76,0 5,-2.24 5,-5s-2.24,-5 -5,-5zM11,15L7,15c-1.65,0 -3,-1.35 -3,-3s1.35,-3 3,-3h4L11,7L7,7c-2.76,0 -5,2.24 -5,5s2.24,5 5,5h4v-2zM8,11h8v2L8,13z"/>
</vector>
diff --git a/app/src/main/res/drawable/ic_link_post_type_indicator.xml b/app/src/main/res/drawable/ic_link_post_type_indicator.xml
new file mode 100644
index 00000000..720bb7c5
--- /dev/null
+++ b/app/src/main/res/drawable/ic_link_post_type_indicator.xml
@@ -0,0 +1,9 @@
+<vector xmlns:android="http://schemas.android.com/apk/res/android"
+ android:width="24dp"
+ android:height="24dp"
+ android:viewportWidth="24"
+ android:viewportHeight="24">
+ <path
+ android:fillColor="#FFFFFF"
+ android:pathData="M17,7h-4v2h4c1.65,0 3,1.35 3,3s-1.35,3 -3,3h-4v2h4c2.76,0 5,-2.24 5,-5s-2.24,-5 -5,-5zM11,15L7,15c-1.65,0 -3,-1.35 -3,-3s1.35,-3 3,-3h4L11,7L7,7c-2.76,0 -5,2.24 -5,5s2.24,5 5,5h4v-2zM8,11h8v2L8,13z"/>
+</vector>