Skip to content

Commit

Permalink
remove redundant BoxView code and comment
Browse files Browse the repository at this point in the history
  • Loading branch information
bellerbrock committed Sep 8, 2023
1 parent 77abd20 commit 0993a3b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -567,6 +567,7 @@ class RangeBoxView : ConstraintLayout {
} else {
if (rangeID.isNotEmpty()) {
//index.setEnabled(true);
// In addtion to advancing the entry, return to the first trait in the trait order if the preference is enabled
if (controller.isReturnFirstTrait()) {
traitBox.returnFirst()
}
Expand Down
4 changes: 0 additions & 4 deletions app/src/main/java/com/fieldbook/tracker/views/TraitBoxView.kt
Original file line number Diff line number Diff line change
Expand Up @@ -347,14 +347,10 @@ class TraitBoxView : ConstraintLayout {
}

fun returnFirst() {
if (!controller.validateData()) {
return
}
if (controller.getPreferences().getBoolean(GeneralKeys.CYCLE_TRAITS_SOUND, false)) {
controller.getSoundHelper().playCycle()
}
traitType.setSelection(0)
controller.refreshLock()
controller.getCollectInputView().resetInitialIndex()
}

Expand Down

0 comments on commit 0993a3b

Please sign in to comment.