Skip to content

Commit

Permalink
Merge pull request #4808 from Bnyro/master
Browse files Browse the repository at this point in the history
fix: wrong channel group shown as selected
  • Loading branch information
Bnyro authored Sep 18, 2023
2 parents 86007d5 + a32e081 commit 70689ea
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -193,9 +193,6 @@ class SubscriptionsFragment : Fragment() {
val groups = DatabaseHolder.Database.subscriptionGroupsDao().getAll()
.sortedBy { it.index }
channelGroupsModel.groups.postValue(groups)
withContext(Dispatchers.Main) {
initChannelGroups()
}
}
}

Expand Down Expand Up @@ -241,12 +238,13 @@ class SubscriptionsFragment : Fragment() {
setOnLongClickListener {
// the index must be increased by one to skip the "all channels" group button
playByGroup(index + 1)

true
}
}

binding.channelGroups.addView(chip)

if (index + 1 == selectedFilterGroup) binding.channelGroups.check(chip.id)
}
}

Expand Down

0 comments on commit 70689ea

Please sign in to comment.