feat: option to disable trending scroll (#288)
This commit is contained in:
parent
378abe73c9
commit
d46f1b25eb
6 changed files with 37 additions and 6 deletions
|
@ -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)),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue