Skip to content

Commit

Permalink
fixed mis-match default values
Browse files Browse the repository at this point in the history
  • Loading branch information
aayush2622 committed Jan 30, 2024
1 parent 965addd commit 922ccdf
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/src/main/java/ani/dantotsu/home/AnimeFragment.kt
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ class AnimeFragment : Fragment() {
model.loadTrending(1)
model.loadUpdated()
model.loadPopular("ANIME", sort = Anilist.sortBy[1], onList = PrefWrapper.getVal(
PrefName.PopularAnimeList, false))
PrefName.PopularAnimeList, true))
}
live.postValue(false)
_binding?.animeRefresh?.isRefreshing = false
Expand Down
3 changes: 1 addition & 2 deletions app/src/main/java/ani/dantotsu/home/MangaFragment.kt
Original file line number Diff line number Diff line change
Expand Up @@ -246,8 +246,7 @@ class MangaFragment : Fragment() {
model.loadTrending()
model.loadTrendingNovel()
model.loadPopular("MANGA", sort = Anilist.sortBy[1], onList = PrefWrapper.getVal(
PrefName.PopularMangaList, false
))
PrefName.PopularMangaList, true))
}
live.postValue(false)
_binding?.mangaRefresh?.isRefreshing = false
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/ani/dantotsu/home/MangaPageAdapter.kt
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ class MangaPageAdapter : RecyclerView.Adapter<MangaPageAdapter.MangaPageViewHold
binding.mangaIncludeList.visibility =
if (Anilist.userid != null) View.VISIBLE else View.GONE

binding.mangaIncludeList.isChecked = PrefWrapper.getVal(PrefName.PopularMangaList, false)
binding.mangaIncludeList.isChecked = PrefWrapper.getVal(PrefName.PopularMangaList, true)

binding.mangaIncludeList.setOnCheckedChangeListener { _, isChecked ->
onIncludeListClick.invoke(isChecked)
Expand Down

0 comments on commit 922ccdf

Please sign in to comment.