Skip to content

Commit

Permalink
Fixed onItemClick in InstanceChooserList
Browse files Browse the repository at this point in the history
  • Loading branch information
grzesiek2010 committed Oct 28, 2023
1 parent da182e4 commit fbe042e
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,8 @@ public void onItemClick(AdapterView<?> parent, View view, int position, long id)
c.getString(c.getColumnIndex(DatabaseInstanceColumns.CAN_EDIT_WHEN_COMPLETE));

boolean canEdit = status.equals(Instance.STATUS_INCOMPLETE)
|| status.equals(Instance.STATUS_INVALID)
|| status.equals(Instance.STATUS_VALID)
|| Boolean.parseBoolean(strCanEditWhenComplete);
if (!canEdit) {
createErrorDialog(getString(org.odk.collect.strings.R.string.cannot_edit_completed_form),
Expand Down

0 comments on commit fbe042e

Please sign in to comment.