{"action":"created","issue":{"url":"https://api.github.com/repos/dimagi/commcare-odk/issues/1147","repository_url":"https://api.github.com/repos/dimagi/commcare-odk","labels_url":"https://api.github.com/repos/dimagi/commcare-odk/issues/1147/labels{/name}","comments_url":"https://api.github.com/repos/dimagi/commcare-odk/issues/1147/comments","events_url":"https://api.github.com/repos/dimagi/commcare-odk/issues/1147/events","html_url":"https://github.com/dimagi/commcare-odk/pull/1147","id":142702489,"number":1147,"title":"Fix last username spill-over to newly installed app","user":{"login":"amstone326","id":3723143,"avatar_url":"https://avatars.githubusercontent.com/u/3723143?v=3","gravatar_id":"","url":"https://api.github.com/users/amstone326","html_url":"https://github.com/amstone326","followers_url":"https://api.github.com/users/amstone326/followers","following_url":"https://api.github.com/users/amstone326/following{/other_user}","gists_url":"https://api.github.com/users/amstone326/gists{/gist_id}","starred_url":"https://api.github.com/users/amstone326/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amstone326/subscriptions","organizations_url":"https://api.github.com/users/amstone326/orgs","repos_url":"https://api.github.com/users/amstone326/repos","events_url":"https://api.github.com/users/amstone326/events{/privacy}","received_events_url":"https://api.github.com/users/amstone326/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":"closed","locked":false,"assignee":{"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},"milestone":{"url":"https://api.github.com/repos/dimagi/commcare-odk/milestones/7","html_url":"https://github.com/dimagi/commcare-odk/milestones/commcare_2.27","labels_url":"https://api.github.com/repos/dimagi/commcare-odk/milestones/7/labels","id":1523294,"number":7,"title":"commcare_2.27","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":2,"closed_issues":87,"state":"open","created_at":"2016-01-20T15:41:42Z","updated_at":"2016-03-22T18:52:53Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2016-03-22T16:24:47Z","updated_at":"2016-03-22T18:52:53Z","closed_at":"2016-03-22T18:52:53Z","pull_request":{"url":"https://api.github.com/repos/dimagi/commcare-odk/pulls/1147","html_url":"https://github.com/dimagi/commcare-odk/pull/1147","diff_url":"https://github.com/dimagi/commcare-odk/pull/1147.diff","patch_url":"https://github.com/dimagi/commcare-odk/pull/1147.patch"},"body":"Fix for http://manage.dimagi.com/default.asp?221630#1113023, which was introduced in https://github.com/dimagi/commcare-odk/pull/1138. \r\n\r\nTurns out there was one reason for calling `refreshForNewApp()` in `onResume()` that I had forgotten about: if you install an app from the app manager and then return to the login screen, the seated app has changed. This PR introduces a check for that case."},"comment":{"url":"https://api.github.com/repos/dimagi/commcare-odk/issues/comments/199960737","html_url":"https://github.com/dimagi/commcare-odk/pull/1147#issuecomment-199960737","issue_url":"https://api.github.com/repos/dimagi/commcare-odk/issues/1147","id":199960737,"user":{"login":"amstone326","id":3723143,"avatar_url":"https://avatars.githubusercontent.com/u/3723143?v=3","gravatar_id":"","url":"https://api.github.com/users/amstone326","html_url":"https://github.com/amstone326","followers_url":"https://api.github.com/users/amstone326/followers","following_url":"https://api.github.com/users/amstone326/following{/other_user}","gists_url":"https://api.github.com/users/amstone326/gists{/gist_id}","starred_url":"https://api.github.com/users/amstone326/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amstone326/subscriptions","organizations_url":"https://api.github.com/users/amstone326/orgs","repos_url":"https://api.github.com/users/amstone326/repos","events_url":"https://api.github.com/users/amstone326/events{/privacy}","received_events_url":"https://api.github.com/users/amstone326/received_events","type":"User","site_admin":false},"created_at":"2016-03-22T18:52:53Z","updated_at":"2016-03-22T18:52:53Z","body":"Thanks, creating a new one"}}