aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java/ml/docilealligator/infinityforreddit
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2021-07-16 00:56:47 +0000
committerAlex Ning <chineseperson5@gmail.com>2021-07-16 00:56:47 +0000
commit25d8d901ade3d990310a1abfa676238fe6689f2b (patch)
tree0ee1cee7b483809f3a754772337b42bd1c623bd3 /app/src/main/java/ml/docilealligator/infinityforreddit
parenta610be7d16316a17d4c6910027d135ceda09f2ed (diff)
downloadinfinity-for-reddit-25d8d901ade3d990310a1abfa676238fe6689f2b.tar
infinity-for-reddit-25d8d901ade3d990310a1abfa676238fe6689f2b.tar.gz
infinity-for-reddit-25d8d901ade3d990310a1abfa676238fe6689f2b.tar.bz2
infinity-for-reddit-25d8d901ade3d990310a1abfa676238fe6689f2b.tar.lz
infinity-for-reddit-25d8d901ade3d990310a1abfa676238fe6689f2b.tar.xz
infinity-for-reddit-25d8d901ade3d990310a1abfa676238fe6689f2b.tar.zst
infinity-for-reddit-25d8d901ade3d990310a1abfa676238fe6689f2b.zip
Small changes in RedditGallerySubmissionRecyclerViewAdapter's UI.
Diffstat (limited to 'app/src/main/java/ml/docilealligator/infinityforreddit')
-rw-r--r--app/src/main/java/ml/docilealligator/infinityforreddit/adapters/RedditGallerySubmissionRecyclerViewAdapter.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/RedditGallerySubmissionRecyclerViewAdapter.java b/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/RedditGallerySubmissionRecyclerViewAdapter.java
index b81f235b..9184523e 100644
--- a/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/RedditGallerySubmissionRecyclerViewAdapter.java
+++ b/app/src/main/java/ml/docilealligator/infinityforreddit/adapters/RedditGallerySubmissionRecyclerViewAdapter.java
@@ -155,8 +155,9 @@ public class RedditGallerySubmissionRecyclerViewAdapter extends RecyclerView.Ada
public AddImageViewHolder(@NonNull View itemView) {
super(itemView);
- itemView.setBackgroundTintList(ColorStateList.valueOf(customThemeWrapper.getColorPrimaryLightTheme()));
- ((FloatingActionButton) itemView).setImageTintList(ColorStateList.valueOf(customThemeWrapper.getFABIconColor()));
+ FloatingActionButton fab = itemView.findViewById(R.id.fab_item_gallery_submission_add_image);
+ fab.setBackgroundTintList(ColorStateList.valueOf(customThemeWrapper.getColorPrimaryLightTheme()));
+ fab.setImageTintList(ColorStateList.valueOf(customThemeWrapper.getFABIconColor()));
itemView.setOnClickListener(view -> itemClickListener.onAddImageClicked());
}