mirror of
https://github.com/rebelonion/Dantotsu.git
synced 2026-01-22 13:53:56 +00:00
feat: option to disable trending scroll (#288)
This commit is contained in:
@@ -77,6 +77,11 @@ class UserInterfaceSettingsActivity : AppCompatActivity() {
|
||||
restartApp(binding.root)
|
||||
}
|
||||
|
||||
binding.uiSettingsTrendingScroller.isChecked = PrefManager.getVal(PrefName.TrendingScroller)
|
||||
binding.uiSettingsTrendingScroller.setOnCheckedChangeListener { _, isChecked ->
|
||||
PrefManager.setVal(PrefName.TrendingScroller, isChecked)
|
||||
}
|
||||
|
||||
val map = mapOf(
|
||||
2f to 0.5f,
|
||||
1.75f to 0.625f,
|
||||
|
||||
@@ -68,6 +68,7 @@ enum class PrefName(val data: Pref) { //TODO: Split this into multiple files
|
||||
),
|
||||
BannerAnimations(Pref(Location.UI, Boolean::class, true)),
|
||||
LayoutAnimations(Pref(Location.UI, Boolean::class, true)),
|
||||
TrendingScroller(Pref(Location.UI, Boolean::class, true)),
|
||||
AnimationSpeed(Pref(Location.UI, Float::class, 1f)),
|
||||
ListGrid(Pref(Location.UI, Boolean::class, true)),
|
||||
PopularMangaList(Pref(Location.UI, Boolean::class, true)),
|
||||
|
||||
Reference in New Issue
Block a user