{"action":"created","issue":{"url":"https://api.github.com/repos/toggl/mobile/issues/1491","repository_url":"https://api.github.com/repos/toggl/mobile","labels_url":"https://api.github.com/repos/toggl/mobile/issues/1491/labels{/name}","comments_url":"https://api.github.com/repos/toggl/mobile/issues/1491/comments","events_url":"https://api.github.com/repos/toggl/mobile/issues/1491/events","html_url":"https://github.com/toggl/mobile/issues/1491","id":150858471,"number":1491,"title":"Error when creating MainDrawerActivity in v8.1.3","user":{"login":"alfonsogarciacaro","id":8275461,"avatar_url":"https://avatars.githubusercontent.com/u/8275461?v=3","gravatar_id":"","url":"https://api.github.com/users/alfonsogarciacaro","html_url":"https://github.com/alfonsogarciacaro","followers_url":"https://api.github.com/users/alfonsogarciacaro/followers","following_url":"https://api.github.com/users/alfonsogarciacaro/following{/other_user}","gists_url":"https://api.github.com/users/alfonsogarciacaro/gists{/gist_id}","starred_url":"https://api.github.com/users/alfonsogarciacaro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alfonsogarciacaro/subscriptions","organizations_url":"https://api.github.com/users/alfonsogarciacaro/orgs","repos_url":"https://api.github.com/users/alfonsogarciacaro/repos","events_url":"https://api.github.com/users/alfonsogarciacaro/events{/privacy}","received_events_url":"https://api.github.com/users/alfonsogarciacaro/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/toggl/mobile/labels/1d","name":"1d","color":"bfd4f2"},{"url":"https://api.github.com/repos/toggl/mobile/labels/android","name":"android","color":"009800"},{"url":"https://api.github.com/repos/toggl/mobile/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":{"login":"alfonsogarciacaro","id":8275461,"avatar_url":"https://avatars.githubusercontent.com/u/8275461?v=3","gravatar_id":"","url":"https://api.github.com/users/alfonsogarciacaro","html_url":"https://github.com/alfonsogarciacaro","followers_url":"https://api.github.com/users/alfonsogarciacaro/followers","following_url":"https://api.github.com/users/alfonsogarciacaro/following{/other_user}","gists_url":"https://api.github.com/users/alfonsogarciacaro/gists{/gist_id}","starred_url":"https://api.github.com/users/alfonsogarciacaro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alfonsogarciacaro/subscriptions","organizations_url":"https://api.github.com/users/alfonsogarciacaro/orgs","repos_url":"https://api.github.com/users/alfonsogarciacaro/repos","events_url":"https://api.github.com/users/alfonsogarciacaro/events{/privacy}","received_events_url":"https://api.github.com/users/alfonsogarciacaro/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/toggl/mobile/milestones/80","html_url":"https://github.com/toggl/mobile/milestones/2016/15","labels_url":"https://api.github.com/repos/toggl/mobile/milestones/80/labels","id":1701967,"number":80,"title":"2016/15","description":"","creator":{"login":"monday8am","id":1842773,"avatar_url":"https://avatars.githubusercontent.com/u/1842773?v=3","gravatar_id":"","url":"https://api.github.com/users/monday8am","html_url":"https://github.com/monday8am","followers_url":"https://api.github.com/users/monday8am/followers","following_url":"https://api.github.com/users/monday8am/following{/other_user}","gists_url":"https://api.github.com/users/monday8am/gists{/gist_id}","starred_url":"https://api.github.com/users/monday8am/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/monday8am/subscriptions","organizations_url":"https://api.github.com/users/monday8am/orgs","repos_url":"https://api.github.com/users/monday8am/repos","events_url":"https://api.github.com/users/monday8am/events{/privacy}","received_events_url":"https://api.github.com/users/monday8am/received_events","type":"User","site_admin":false},"open_issues":14,"closed_issues":3,"state":"open","created_at":"2016-04-12T17:31:38Z","updated_at":"2016-04-25T13:25:29Z","due_on":"2016-04-24T22:00:00Z","closed_at":null},"comments":2,"created_at":"2016-04-25T13:25:29Z","updated_at":"2016-04-25T13:37:10Z","closed_at":null,"body":"Related to #1490 \r\n\r\nThere seems to be an error when creating `MainDrawerActivity` in v8.1.3. Users' feedback in TestFairy shows the following error:\r\n```Java.Lang.RuntimeException: Cannot add header view to list -- setAdapter has already been called.```\r\n\r\nThe last method from our codebase in the Stack trace is: `Toggl.Joey.UI.Activities.MainDrawerActivity.OnCreateActivity`\r\n\r\nSee the following report in TestFairy for more info:\r\nhttps://free.testfairy.com/projects/1985413-toggltimetracker/builds/3231392/sessions/24"},"comment":{"url":"https://api.github.com/repos/toggl/mobile/issues/comments/214331035","html_url":"https://github.com/toggl/mobile/issues/1491#issuecomment-214331035","issue_url":"https://api.github.com/repos/toggl/mobile/issues/1491","id":214331035,"user":{"login":"alfonsogarciacaro","id":8275461,"avatar_url":"https://avatars.githubusercontent.com/u/8275461?v=3","gravatar_id":"","url":"https://api.github.com/users/alfonsogarciacaro","html_url":"https://github.com/alfonsogarciacaro","followers_url":"https://api.github.com/users/alfonsogarciacaro/followers","following_url":"https://api.github.com/users/alfonsogarciacaro/following{/other_user}","gists_url":"https://api.github.com/users/alfonsogarciacaro/gists{/gist_id}","starred_url":"https://api.github.com/users/alfonsogarciacaro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alfonsogarciacaro/subscriptions","organizations_url":"https://api.github.com/users/alfonsogarciacaro/orgs","repos_url":"https://api.github.com/users/alfonsogarciacaro/repos","events_url":"https://api.github.com/users/alfonsogarciacaro/events{/privacy}","received_events_url":"https://api.github.com/users/alfonsogarciacaro/received_events","type":"User","site_admin":false},"created_at":"2016-04-25T13:37:10Z","updated_at":"2016-04-25T13:37:10Z","body":"Following the error reports and considering the bug doesn't appear in Offline mode, seems the problem is in [these lines](https://github.com/toggl/mobile/blob/master/Joey/UI/Activities/MainDrawerActivity.cs#L115-L117). However, it doesn't affect al users."}}