Skip to content

Resolved error that caused FormEntryActivity to go to the FormChooser List#2234

Merged
lognaturel merged 1 commit into
getodk:masterfrom
jd-alexander:form_chooser_list
May 24, 2018
Merged

Resolved error that caused FormEntryActivity to go to the FormChooser List#2234
lognaturel merged 1 commit into
getodk:masterfrom
jd-alexander:form_chooser_list

Conversation

@jd-alexander
Copy link
Copy Markdown
Contributor

@jd-alexander jd-alexander commented May 23, 2018

Added finish to OnItemClicked listener code that triggers the FormEntryActivity to be opened. This was accidentally removed when the FormChooserList was being refactored to support storage permissions. The denied function of the permissions listener is utilizing a method called finishActivities to clear the entire stack instead of finish to just do so for the current activity, so while removing the finish method this was one was removed as well and the FormChooserList was still on the activity stack so when the FormEntryActivity was finished after saving it would navigate back to it.

Closes #2229

What has been done to verify that this works as intended?

I opened a form and once I saved it or ignored the changes the app navigates back to the main screen.

Why is this the best possible solution? Were any other approaches considered?

Are there any risks to merging this code? If so, what are they?

No.

Do we need any specific form for testing your changes? If so, please attach one.

Any form works.

Does this change require updates to documentation? If so, please file an issue here and include the link below.

Before submitting this PR, please make sure you have:

  • run ./gradlew pmd checkstyle lint findbugs and confirmed all checks still pass.
  • verified that any new UI elements use theme colors. UI Components Style guidelines

…List instead of the MainMenuActivity

Added finish to onItemClicked listener code that triggers the FormEntryActivity to be opened. This was accidentally removed when the FormChooserList was being refactored to support storage permissions. The denied function of the listener is utilizing a method called finishActivities to clear the entire stack instead of finish to just do so for the current activity, so while removing the finish method this was one was removed as well.
@grzesiek2010
Copy link
Copy Markdown
Member

@opendatakit-bot label "needs testing"

@lognaturel lognaturel added the high priority Should be looked at before other PRs/issues label May 23, 2018
@mmarciniak90
Copy link
Copy Markdown
Contributor

Tested with success!

Verified on Android 4.1, 4.2, 4.4, 5.1, 6.0, 7.0, 8.1

Verified cases:

  • save an incomplete form
  • save a complete form
  • leave and ignore changes
  • edit form

@opendatakit-bot label "behavior verified"
@opendatakit-bot unlabel "needs testing"

@lognaturel lognaturel merged commit bf91911 into getodk:master May 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

behavior verified high priority Should be looked at before other PRs/issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants