Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
tsynik committed May 3, 2024
1 parent 224ad54 commit 3418d65
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class TorrentsAdapter(private val activity: FragmentActivity) : BaseAdapter() {
title = list[position].name

vi.findViewById<ImageView>(R.id.ivPoster)?.visibility = View.GONE
if (poster.isNotEmpty() && Settings.showCover())
if (!poster.isNullOrBlank() && Settings.showCover())
vi.findViewById<ImageView>(R.id.ivPoster)?.let {
it.visibility = View.VISIBLE
Glide.with(activity)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ open class InfoFragment : TSFragment() {
}
info.torrent?.let { torr ->
view?.apply {
if (poster != torr.poster) {
poster = torr.poster
if (poster.isNotEmpty() && Settings.showCover())
if (!torr.poster.isNullOrEmpty() && poster != torr.poster) {
poster = torr.poster!!
if (poster.isNotBlank() && Settings.showCover())
findViewById<ImageView?>(R.id.ivPoster)?.let {
it.visibility = View.VISIBLE
Glide.with(this)
Expand Down

0 comments on commit 3418d65

Please sign in to comment.