feat(filter): revamping search for anime and manga (#272)
* feat: revamping search filter part1 * fix: sortBy dropdown now also calls search instead of only updating image * feat: added longclick listener to reset and apply + cleaned up code * feat: status filter fully functional * chore: upgrade AGP to 8.3.1 * fix: splitted status list and cleaned up * fix(search): underscore * feat: attempt to add backend for countryOfOrigin filter * fix: countryOfOrigin query and gradle * feat: source filter fully functional * fix(source): underscore * feat: swap source with status * fix: add searchSource to reset fun * fix: clear underline after reopening bottom sheet * chore: remove unnecessary declaration * feat: add global to countryOfOrigin dropdown * feat: floating cancel and apply button * fix: added searchStatus and searchYear back to manga filter * feat: desperate attempt for manga year filter * feat(sortBy): added new releases item * fix: year filter --------- Co-authored-by: aayush262 <aayushthakur262006@gmail.com>
This commit is contained in:
parent
aabbe9198a
commit
146805af49
28 changed files with 971 additions and 333 deletions
|
@ -74,8 +74,12 @@ class SearchActivity : AppCompatActivity() {
|
|||
genres = intent.getStringExtra("genre")?.let { mutableListOf(it) },
|
||||
tags = intent.getStringExtra("tag")?.let { mutableListOf(it) },
|
||||
sort = intent.getStringExtra("sortBy"),
|
||||
status = intent.getStringExtra("status"),
|
||||
source = intent.getStringExtra("source"),
|
||||
countryOfOrigin = intent.getStringExtra("country"),
|
||||
season = intent.getStringExtra("season"),
|
||||
seasonYear = intent.getStringExtra("seasonYear")?.toIntOrNull(),
|
||||
seasonYear = if (intent.getStringExtra("type") == "ANIME") intent.getStringExtra("seasonYear")?.toIntOrNull() else null,
|
||||
startYear = if (intent.getStringExtra("type") == "MANGA") intent.getStringExtra("seasonYear")?.toIntOrNull() else null,
|
||||
results = mutableListOf(),
|
||||
hasNextPage = false
|
||||
)
|
||||
|
@ -134,8 +138,12 @@ class SearchActivity : AppCompatActivity() {
|
|||
excludedTags = it.excludedTags
|
||||
tags = it.tags
|
||||
season = it.season
|
||||
startYear = it.startYear
|
||||
seasonYear = it.seasonYear
|
||||
status = it.status
|
||||
source = it.source
|
||||
format = it.format
|
||||
countryOfOrigin = it.countryOfOrigin
|
||||
page = it.page
|
||||
hasNextPage = it.hasNextPage
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue