Skip to content

Commit

Permalink
Merge pull request #2466 from dimagi/externalLaunchFix
Browse files Browse the repository at this point in the history
Clean session before exiting from external launch
  • Loading branch information
shubham1g5 committed May 6, 2021
2 parents 855ac66 + 4c3a3ce commit 7385d16
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/src/org/commcare/activities/HomeScreenBaseActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ private void processSessionEndpoint() {
if (intentArgumentsAsBundle != null) {
CommCareApplication.instance().getCurrentSessionWrapper()
.executeEndpointStack(endpoint, AndroidUtil.bundleAsMap(intentArgumentsAsBundle));
} else {
} else if (intentArgumentsAsList != null) {
CommCareApplication.instance().getCurrentSessionWrapper()
.executeEndpointStack(endpoint, intentArgumentsAsList);
}
Expand Down Expand Up @@ -834,6 +834,7 @@ private boolean processReturnFromFormEntry(int resultCode, Intent intent) {
refreshUI();

if (wasExternal) {
currentState.reset();
setResult(RESULT_CANCELED);
this.finish();
return false;
Expand Down

0 comments on commit 7385d16

Please sign in to comment.