mirror of
https://github.com/mihonapp/mihon.git
synced 2025-08-21 05:41:32 +02:00
Compare commits
2 Commits
13dae01c74
...
9bf6a2e98b
Author | SHA1 | Date | |
---|---|---|---|
|
9bf6a2e98b | ||
|
caa90a9164 |
@@ -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
|
||||
|
@@ -133,7 +133,6 @@ class MyAnimeList(id: Long) : BaseTracker(id, NAME), DeletableTracker {
|
||||
return api.search(query)
|
||||
}
|
||||
|
||||
// This should work but is technically untested since MyAnimeList is blocking Mihon at the moment
|
||||
override suspend fun searchId(id: Long): List<TrackSearch> {
|
||||
return listOf(api.getMangaDetails(id.toInt()))
|
||||
}
|
||||
|
Reference in New Issue
Block a user