diff --git a/app/src/main/java/com/example/citrusclient/views/FavoritesBooksFragment.java b/app/src/main/java/com/example/citrusclient/views/FavoritesBooksFragment.java index 160d860..c9157e3 100644 --- a/app/src/main/java/com/example/citrusclient/views/FavoritesBooksFragment.java +++ b/app/src/main/java/com/example/citrusclient/views/FavoritesBooksFragment.java @@ -182,6 +182,7 @@ int parsedColor = Color.parseColor(books.get(position).getColor()); holder.favorites_book.setBackgroundTintList(ColorStateList.valueOf(parsedColor)); + Context context = holder.itemView.getContext(); holder.favorites_book.setOnClickListener(v -> { Activity activity = (Activity) context; @@ -194,7 +195,7 @@ //ここにアイコンの色 int other_iconColor = Color.parseColor(books.get(position).getAccountColor()); holder.other_icon.setBackgroundTintList(ColorStateList.valueOf(other_iconColor)); - + holder.favorites_book.setTextColor(Color.BLACK); }