Skip to content

Commit

Permalink
display logged in trackers first
Browse files Browse the repository at this point in the history
  • Loading branch information
Shamicen committed Mar 7, 2024
1 parent 13dae01 commit caa90a9
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -156,10 +156,14 @@ private fun TrackerRow(
onOpenChipElementInBrowser: (TrackerChipElement) -> Unit,
) {
val trackerChipElements = webUrlProvider()
?.asSequence()
?.map { TrackerChipElement(it, trackItems) }
?.filter { it.trackItem?.track?.remoteId != it.remoteId || it.trackItem?.track == null }
?.filter { it.serviceId != null }
?.sortedBy { it.serviceId }
?.sortedWith(compareBy(nullsLast()) { it.trackItem?.tracker?.id })
?.toList()

if (!trackerChipElements.isNullOrEmpty()) {
Box(
modifier = Modifier
Expand Down

0 comments on commit caa90a9

Please sign in to comment.