Compare commits

...

2 Commits

Author SHA1 Message Date
Shamicen
9bf6a2e98b removed MyAnimeList untested api comment 2024-03-07 11:28:31 +01:00
Shamicen
caa90a9164 display logged in trackers first 2024-03-07 11:08:42 +01:00
2 changed files with 4 additions and 1 deletions

View File

@@ -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

View File

@@ -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()))
}