Skip to content

Commit

Permalink
feat: Hide the skip intro button if the skipped amount == 0 (#1598)
Browse files Browse the repository at this point in the history
  • Loading branch information
abdallahmehiz authored Jun 3, 2024
1 parent a7feccd commit a48a9f4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ object SettingsPlayerScreen : SearchableSettings {
content = {
WheelTextPicker(
modifier = Modifier.align(Alignment.Center),
items = remember { 1..255 }.map {
items = remember { 0..255 }.map {
stringResource(
MR.strings.seconds_short,
it,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -561,6 +561,10 @@ class PlayerActivity : BaseActivity() {
window.navigationBarColor = 70000000
}

if (playerPreferences.defaultIntroLength().get() == 0) {
playerControls.binding.controlsSkipIntroBtn.visibility = View.GONE
}

refreshUi()

if (playerPreferences.hideControls().get()) {
Expand Down

0 comments on commit a48a9f4

Please sign in to comment.