{"action":"created","issue":{"url":"https://api.github.com/repos/ankidroid/Anki-Android/issues/5073","repository_url":"https://api.github.com/repos/ankidroid/Anki-Android","labels_url":"https://api.github.com/repos/ankidroid/Anki-Android/issues/5073/labels{/name}","comments_url":"https://api.github.com/repos/ankidroid/Anki-Android/issues/5073/comments","events_url":"https://api.github.com/repos/ankidroid/Anki-Android/issues/5073/events","html_url":"https://github.com/ankidroid/Anki-Android/pull/5073","id":372325493,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI0NTQ4NDQ3","number":5073,"title":"Load prefs (which uses Col) post-colIsOpen()","user":{"login":"mikehardy","id":782704,"node_id":"MDQ6VXNlcjc4MjcwNA==","avatar_url":"https://avatars1.githubusercontent.com/u/782704?v=4","gravatar_id":"","url":"https://api.github.com/users/mikehardy","html_url":"https://github.com/mikehardy","followers_url":"https://api.github.com/users/mikehardy/followers","following_url":"https://api.github.com/users/mikehardy/following{/other_user}","gists_url":"https://api.github.com/users/mikehardy/gists{/gist_id}","starred_url":"https://api.github.com/users/mikehardy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikehardy/subscriptions","organizations_url":"https://api.github.com/users/mikehardy/orgs","repos_url":"https://api.github.com/users/mikehardy/repos","events_url":"https://api.github.com/users/mikehardy/events{/privacy}","received_events_url":"https://api.github.com/users/mikehardy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2018-10-21T15:19:44Z","updated_at":"2018-11-08T03:44:34Z","closed_at":null,"author_association":"MEMBER","pull_request":{"url":"https://api.github.com/repos/ankidroid/Anki-Android/pulls/5073","html_url":"https://github.com/ankidroid/Anki-Android/pull/5073","diff_url":"https://github.com/ankidroid/Anki-Android/pull/5073.diff","patch_url":"https://github.com/ankidroid/Anki-Android/pull/5073.patch"},"body":"## Pull Request template\r\n\r\n## Purpose / Description\r\nAbstractFlashcardViewer.restorePreferences() loads a few prefs from the collection but is called from onCreate() not onCollectionLoaded(), so it's touching the database on the UI thread\r\n\r\n## Approach\r\nI just moved the collection-touching items from the restorePreferences() call to a collection-prefs-specific method I call from onCollectionLoaded()\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/ankidroid/Anki-Android/issues/comments/436863507","html_url":"https://github.com/ankidroid/Anki-Android/pull/5073#issuecomment-436863507","issue_url":"https://api.github.com/repos/ankidroid/Anki-Android/issues/5073","id":436863507,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNjg2MzUwNw==","user":{"login":"timrae","id":2818274,"node_id":"MDQ6VXNlcjI4MTgyNzQ=","avatar_url":"https://avatars1.githubusercontent.com/u/2818274?v=4","gravatar_id":"","url":"https://api.github.com/users/timrae","html_url":"https://github.com/timrae","followers_url":"https://api.github.com/users/timrae/followers","following_url":"https://api.github.com/users/timrae/following{/other_user}","gists_url":"https://api.github.com/users/timrae/gists{/gist_id}","starred_url":"https://api.github.com/users/timrae/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/timrae/subscriptions","organizations_url":"https://api.github.com/users/timrae/orgs","repos_url":"https://api.github.com/users/timrae/repos","events_url":"https://api.github.com/users/timrae/events{/privacy}","received_events_url":"https://api.github.com/users/timrae/received_events","type":"User","site_admin":false},"created_at":"2018-11-08T03:44:34Z","updated_at":"2018-11-08T03:44:34Z","author_association":"MEMBER","body":"I thought I had already merged this actually, I must be going senile"}}
{"actor":{"display_login":"timrae"}}