Skip to content

Commit

Permalink
fix channel update with null data
Browse files Browse the repository at this point in the history
  • Loading branch information
tsynik committed Apr 28, 2024
1 parent a7fcb1e commit 6291670
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions app/src/main/java/ru/yourok/torrserve/atv/Utils.kt
Original file line number Diff line number Diff line change
Expand Up @@ -87,16 +87,15 @@ object Utils {
vintent.putExtra("action", "play")
vintent.putExtra("hash", torr.hash)
vintent.putExtra("title", torr.title)
vintent.putExtra("poster", torr.poster)
if (torr.poster.isNotBlank()) vintent.putExtra("poster", torr.poster)
torr.category?.let { if (it.isNotBlank()) vintent.putExtra("category", it) }
if (torr.data.isNotBlank()) vintent.putExtra("data", torr.data)
torr.data?.let {if (it.isNotBlank()) vintent.putExtra("data", it) }
vintent.putExtra("save", false)
return vintent
}

private var lock = Any()
fun updateAtvCards() {

if (isGoogleTV) {
synchronized(lock) {
if (lock == true)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ data class Torrent(
var title: String,
var poster: String,
var category: String?,
var data: String,
var data: String?,
var timestamp: Long,
var name: String,
var hash: String,
Expand Down

0 comments on commit 6291670

Please sign in to comment.