Skip to content

Commit

Permalink
PR fix: More accurately detect beginning of form
Browse files Browse the repository at this point in the history
Previously would think it was at the beginning when it was at the first
question inside of the first group.
  • Loading branch information
cooperka committed Jan 23, 2019
1 parent 6b6fd8d commit 4b77e0a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,8 @@ private void updateOptionsMenu() {
}

FormController formController = Collect.getInstance().getFormController();
boolean isAtBeginning = formController.isCurrentQuestionFirstInForm() && !shouldShowRepeatGroupPicker();
FormIndex currIndex = formController.getFormIndex();
boolean isAtBeginning = currIndex.isBeginningOfFormIndex() && !shouldShowRepeatGroupPicker();
boolean shouldShowPicker = shouldShowRepeatGroupPicker();
boolean isInRepeat = !isAtBeginning && formController.getEvent(screenIndex) == FormEntryController.EVENT_REPEAT;

Expand Down

0 comments on commit 4b77e0a

Please sign in to comment.