mirror of
https://github.com/rebelonion/Dantotsu.git
synced 2026-01-25 04:51:01 +00:00
Added Skip Recap Feature (#336)
* Added Skip Recap Feature * Reverted gradle.properties to default
This commit is contained in:
@@ -24,6 +24,7 @@ import ani.dantotsu.others.getSerialized
|
||||
import ani.dantotsu.parsers.Subtitle
|
||||
import ani.dantotsu.settings.saving.PrefManager
|
||||
import ani.dantotsu.settings.saving.PrefName
|
||||
import ani.dantotsu.settings.saving.internal.Pref
|
||||
import ani.dantotsu.snackString
|
||||
import ani.dantotsu.statusBarHeight
|
||||
import ani.dantotsu.themes.ThemeManager
|
||||
@@ -163,6 +164,12 @@ class PlayerSettingsActivity : AppCompatActivity() {
|
||||
PrefManager.setVal(PrefName.AutoSkipOPED, isChecked)
|
||||
}
|
||||
|
||||
binding.playerSettingsAutoSkipRecap.isChecked = PrefManager.getVal(PrefName.AutoSkipRecap)
|
||||
binding.playerSettingsAutoSkipRecap.isEnabled = binding.playerSettingsTimeStamps.isChecked
|
||||
binding.playerSettingsAutoSkipRecap.setOnCheckedChangeListener { _, isChecked ->
|
||||
PrefManager.setVal(PrefName.AutoSkipRecap, isChecked)
|
||||
}
|
||||
|
||||
binding.playerSettingsAutoPlay.isChecked = PrefManager.getVal(PrefName.AutoPlay)
|
||||
binding.playerSettingsAutoPlay.setOnCheckedChangeListener { _, isChecked ->
|
||||
PrefManager.setVal(PrefName.AutoPlay, isChecked)
|
||||
|
||||
@@ -102,6 +102,7 @@ enum class PrefName(val data: Pref) { //TODO: Split this into multiple files
|
||||
UseProxyForTimeStamps(Pref(Location.Player, Boolean::class, false)),
|
||||
ShowTimeStampButton(Pref(Location.Player, Boolean::class, true)),
|
||||
AutoSkipOPED(Pref(Location.Player, Boolean::class, false)),
|
||||
AutoSkipRecap(Pref(Location.Player, Boolean::class, false )),
|
||||
AutoPlay(Pref(Location.Player, Boolean::class, true)),
|
||||
AutoSkipFiller(Pref(Location.Player, Boolean::class, false)),
|
||||
AskIndividualPlayer(Pref(Location.Player, Boolean::class, true)),
|
||||
|
||||
Reference in New Issue
Block a user