{"action":"created","issue":{"url":"https://api.github.com/repos/dimagi/commcare-odk/issues/517","labels_url":"https://api.github.com/repos/dimagi/commcare-odk/issues/517/labels{/name}","comments_url":"https://api.github.com/repos/dimagi/commcare-odk/issues/517/comments","events_url":"https://api.github.com/repos/dimagi/commcare-odk/issues/517/events","html_url":"https://github.com/dimagi/commcare-odk/pull/517","id":100640046,"number":517,"title":"Unconditional exit method to CommCareHomeActivity","user":{"login":"dcluna","id":1153041,"avatar_url":"https://avatars.githubusercontent.com/u/1153041?v=3","gravatar_id":"","url":"https://api.github.com/users/dcluna","html_url":"https://github.com/dcluna","followers_url":"https://api.github.com/users/dcluna/followers","following_url":"https://api.github.com/users/dcluna/following{/other_user}","gists_url":"https://api.github.com/users/dcluna/gists{/gist_id}","starred_url":"https://api.github.com/users/dcluna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dcluna/subscriptions","organizations_url":"https://api.github.com/users/dcluna/orgs","repos_url":"https://api.github.com/users/dcluna/repos","events_url":"https://api.github.com/users/dcluna/events{/privacy}","received_events_url":"https://api.github.com/users/dcluna/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dimagi/commcare-odk/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/dimagi/commcare-odk/labels/minor%20(quick%20review)","name":"minor (quick review)","color":"159818"},{"url":"https://api.github.com/repos/dimagi/commcare-odk/labels/ready%20for%20review","name":"ready for review","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/dimagi/commcare-odk/milestones/3","html_url":"https://github.com/dimagi/commcare-odk/milestones/commcare_2.23","labels_url":"https://api.github.com/repos/dimagi/commcare-odk/milestones/3/labels","id":1187713,"number":3,"title":"commcare_2.23","description":null,"creator":{"login":"phillipm","id":94817,"avatar_url":"https://avatars.githubusercontent.com/u/94817?v=3","gravatar_id":"","url":"https://api.github.com/users/phillipm","html_url":"https://github.com/phillipm","followers_url":"https://api.github.com/users/phillipm/followers","following_url":"https://api.github.com/users/phillipm/following{/other_user}","gists_url":"https://api.github.com/users/phillipm/gists{/gist_id}","starred_url":"https://api.github.com/users/phillipm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phillipm/subscriptions","organizations_url":"https://api.github.com/users/phillipm/orgs","repos_url":"https://api.github.com/users/phillipm/repos","events_url":"https://api.github.com/users/phillipm/events{/privacy}","received_events_url":"https://api.github.com/users/phillipm/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":91,"state":"open","created_at":"2015-06-30T18:27:37Z","updated_at":"2015-08-13T11:20:06Z","due_on":null,"closed_at":null},"comments":6,"created_at":"2015-08-12T21:32:16Z","updated_at":"2015-08-13T14:36:06Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/dimagi/commcare-odk/pulls/517","html_url":"https://github.com/dimagi/commcare-odk/pull/517","diff_url":"https://github.com/dimagi/commcare-odk/pull/517.diff","patch_url":"https://github.com/dimagi/commcare-odk/pull/517.patch"},"body":"Solving bug [178853](http://manage.dimagi.com/default.asp?178853#993131)."},"comment":{"url":"https://api.github.com/repos/dimagi/commcare-odk/issues/comments/130700366","html_url":"https://github.com/dimagi/commcare-odk/pull/517#issuecomment-130700366","issue_url":"https://api.github.com/repos/dimagi/commcare-odk/issues/517","id":130700366,"user":{"login":"dcluna","id":1153041,"avatar_url":"https://avatars.githubusercontent.com/u/1153041?v=3","gravatar_id":"","url":"https://api.github.com/users/dcluna","html_url":"https://github.com/dcluna","followers_url":"https://api.github.com/users/dcluna/followers","following_url":"https://api.github.com/users/dcluna/following{/other_user}","gists_url":"https://api.github.com/users/dcluna/gists{/gist_id}","starred_url":"https://api.github.com/users/dcluna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dcluna/subscriptions","organizations_url":"https://api.github.com/users/dcluna/orgs","repos_url":"https://api.github.com/users/dcluna/repos","events_url":"https://api.github.com/users/dcluna/events{/privacy}","received_events_url":"https://api.github.com/users/dcluna/received_events","type":"User","site_admin":false},"created_at":"2015-08-13T14:36:06Z","updated_at":"2015-08-13T14:36:06Z","body":"When leaving LoginActivity, we get returned to CommCareHomeActivity,\nspecifically to the dispatchHomeScreen() method. At the line\nhttps://github.com/dimagi/commcare-odk/blob/a37ff30abcc2e07b6c5c634e656bd61cb1e0f6cc/app/src/org/commcare/dalvik/activities/CommCareHomeActivity.java#L1119,\nwe get an SessionUnavailableException (\nhttps://github.com/dimagi/commcare-odk/blob/a37ff30abcc2e07b6c5c634e656bd61cb1e0f6cc/app/src/org/commcare/dalvik/activities/CommCareHomeActivity.java#L1138),\nwhich makes us go to the login page again. But even if this exception\ndidn't happen, I assume the check for an active session would return false,\nthus sending us to the login activity again.\n\ntl,dr: An unintentional loop in the code, fixed by this PR with a \"get out\nunconditionally\" flag.\n\nOn Thu, Aug 13, 2015 at 11:11 AM, Aliza Stone <notifications@github.com>\nwrote:\n\n> Maybe not, but it still seems really hardcoded-- Would it be better to\n> figure out why this isn't what's happening? Presumably that means that\n> there is something else on the backstack? Or is there another reason?\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/dimagi/commcare-odk/pull/517#issuecomment-130689763>.\n>\n"}}