{"action":"closed","issue":{"url":"https://api.github.com/repos/MailCore/mailcore2/issues/1561","repository_url":"https://api.github.com/repos/MailCore/mailcore2","labels_url":"https://api.github.com/repos/MailCore/mailcore2/issues/1561/labels{/name}","comments_url":"https://api.github.com/repos/MailCore/mailcore2/issues/1561/comments","events_url":"https://api.github.com/repos/MailCore/mailcore2/issues/1561/events","html_url":"https://github.com/MailCore/mailcore2/issues/1561","id":188594584,"number":1561,"title":"Operations on Java Main Thread","user":{"login":"christianlanz","id":6087393,"avatar_url":"https://avatars.githubusercontent.com/u/6087393?v=3","gravatar_id":"","url":"https://api.github.com/users/christianlanz","html_url":"https://github.com/christianlanz","followers_url":"https://api.github.com/users/christianlanz/followers","following_url":"https://api.github.com/users/christianlanz/following{/other_user}","gists_url":"https://api.github.com/users/christianlanz/gists{/gist_id}","starred_url":"https://api.github.com/users/christianlanz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/christianlanz/subscriptions","organizations_url":"https://api.github.com/users/christianlanz/orgs","repos_url":"https://api.github.com/users/christianlanz/repos","events_url":"https://api.github.com/users/christianlanz/events{/privacy}","received_events_url":"https://api.github.com/users/christianlanz/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-10T19:20:09Z","updated_at":"2016-11-11T08:50:58Z","closed_at":"2016-11-11T08:50:58Z","body":"What's the exact reason why you execute operations on the main thread?\r\n\r\nThe functionality seems to come from: MainThreadUtils.java\r\nhttps://github.com/MailCore/mailcore2/blob/master/src/java/com/libmailcore/MainThreadUtils.java\r\n\r\nBecause you execute operations on the main thread, the callbacks must be invoked on the main thread (otherwise it crashes), but I don't get the point of this. The only thing that does is making the application laggy when refreshing the mails, because the callbacks **must** be invoked on the main thread.\r\n\r\nCan you move that off the main thread? That would be awesome.\r\n\r\nCheers\r\nChris"}}
{"actor":{"display_login":"dinhviethoa"}}