[Mangadex] Change default sort selection to match popularMangaR… (#1246)
The app defaults to popularManga when no sorting options are selected, so the default sort should be updated to match that behavior instead of showing 'update date'
This commit is contained in:
parent
1d89d9f3ee
commit
565610d802
|
@ -5,7 +5,7 @@ ext {
|
|||
appName = 'Tachiyomi: MangaDex'
|
||||
pkgNameSuffix = 'all.mangadex'
|
||||
extClass = '.MangadexFactory'
|
||||
extVersionCode = 62
|
||||
extVersionCode = 63
|
||||
libVersion = '1.2'
|
||||
}
|
||||
|
||||
|
|
|
@ -97,6 +97,7 @@ open class Mangadex(override val lang: String, private val internalLang: String,
|
|||
|
||||
override fun latestUpdatesSelector() = "tr a.manga_title"
|
||||
|
||||
// url matches default SortFilter selection (Rating Descending)
|
||||
override fun popularMangaRequest(page: Int): Request {
|
||||
return GET("$baseUrl/titles/7/$page/", headersBuilder().build())
|
||||
}
|
||||
|
@ -574,9 +575,10 @@ open class Mangadex(override val lang: String, private val internalLang: String,
|
|||
private class TagInclusionMode : Filter.Select<String>("Tag inclusion mode", arrayOf("All (and)", "Any (or)"), 0)
|
||||
private class TagExclusionMode : Filter.Select<String>("Tag exclusion mode", arrayOf("All (and)", "Any (or)"), 1)
|
||||
|
||||
// default selection (Rating Descending) matches popularMangaRequest url
|
||||
class SortFilter : Filter.Sort("Sort",
|
||||
sortables.map { it.first }.toTypedArray(),
|
||||
Filter.Sort.Selection(0, true))
|
||||
Filter.Sort.Selection(3, false))
|
||||
|
||||
private class OriginalLanguage : Filter.Select<String>("Original Language", SOURCE_LANG_LIST.map { it -> it.first }.toTypedArray())
|
||||
|
||||
|
|
Loading…
Reference in New Issue