"Include list" switch changed (#153)

* "Include list" switch change

* remember the toggle state of "Include list"
This commit is contained in:
aayush262 2024-01-23 00:10:29 +05:30 committed by GitHub
parent 627bed2407
commit 563e4f2cbe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 28 additions and 7 deletions

View file

@ -2,6 +2,7 @@ package ani.dantotsu.home
import android.animation.ObjectAnimator
import android.annotation.SuppressLint
import android.content.Context
import android.content.Intent
import android.os.Build
import android.os.Bundle
@ -267,7 +268,8 @@ class AnimeFragment : Fragment() {
model.loaded = true
model.loadTrending(1)
model.loadUpdated()
model.loadPopular("ANIME", sort = Anilist.sortBy[1])
model.loadPopular("ANIME", sort = Anilist.sortBy[1], onList = requireContext().getSharedPreferences("Dantotsu", Context.MODE_PRIVATE)
.getBoolean("popular_list", false))
}
live.postValue(false)
_binding?.animeRefresh?.isRefreshing = false