Skip to content

Commit

Permalink
fix: ETIP tracker highlight state
Browse files Browse the repository at this point in the history
  • Loading branch information
Hamza417 committed Feb 7, 2025
1 parent 8682281 commit ed9578f
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,8 @@ class AdapterTrackers(private val list: ArrayList<Tracker>, private val keyword:
appendFlag(it)
}

list[position].isETIP.let {
if (it) {
appendFlag(holder.itemView.context.getString(R.string.suspected_tracker))
}
if (list[position].isETIP) {
appendFlag(holder.itemView.context.getString(R.string.suspected_tracker))
}
}

Expand All @@ -87,6 +85,8 @@ class AdapterTrackers(private val list: ArrayList<Tracker>, private val keyword:

if (list[position].isETIP) {
holder.container.setWarningBackground(ETIP_HIGHLIGHT)
} else {
holder.container.setDefaultBackground(false)
}

if (isRoot) {
Expand Down

0 comments on commit ed9578f

Please sign in to comment.