Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class AnimeSortedByViewHolder(private val binding: AtpItemBinding) : RecyclerVie
binding.titleTextView.text = title
binding.imageView.load(data.coverImage?.extraLarge) {
crossfade(300)
data.coverImage?.color?.let { placeholder(ColorDrawable(Color.parseColor(it))) }
data.coverImage?.color?.let { placeholder(ColorDrawable(Color.parseColor(it))) }
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[ktlint] reported by reviewdog 🐶
Unnecessary space(s)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [ktlint] reported by reviewdog 🐶
Unnecessary space(s)

}
}
}
Expand Down
4 changes: 2 additions & 2 deletions app/src/main/java/com/animetracker/ui/HomeFragment.kt
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ class HomeFragment : Fragment() {

override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
super.onViewCreated(view, savedInstanceState)
adapter = AnimeSortedByAdapter()
adapter = AnimeSortedByAdapter ()
recyclerView = binding.recyclerView
recyclerView.layoutManager = GridLayoutManager(context, 2)
recyclerView.layoutManager = GridLayoutManager (context, 2)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚫 [ktlint] reported by reviewdog 🐶
Unexpected spacing before "("

recyclerView.adapter = adapter
lifecycleScope.launch {
homeViewModel.trendingAnime.collect { pagingData ->
Expand Down