{"action":"created","issue":{"url":"https://api.github.com/repos/flutter/flutter/issues/5373","repository_url":"https://api.github.com/repos/flutter/flutter","labels_url":"https://api.github.com/repos/flutter/flutter/issues/5373/labels{/name}","comments_url":"https://api.github.com/repos/flutter/flutter/issues/5373/comments","events_url":"https://api.github.com/repos/flutter/flutter/issues/5373/events","html_url":"https://github.com/flutter/flutter/issues/5373","id":170951373,"number":5373,"title":"First start on Android flashes: starts with black and then displays the app (mostly white), and the image in the app bar pops in","user":{"login":"sethladd","id":5479,"avatar_url":"https://avatars.githubusercontent.com/u/5479?v=3","gravatar_id":"","url":"https://api.github.com/users/sethladd","html_url":"https://github.com/sethladd","followers_url":"https://api.github.com/users/sethladd/followers","following_url":"https://api.github.com/users/sethladd/following{/other_user}","gists_url":"https://api.github.com/users/sethladd/gists{/gist_id}","starred_url":"https://api.github.com/users/sethladd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sethladd/subscriptions","organizations_url":"https://api.github.com/users/sethladd/orgs","repos_url":"https://api.github.com/users/sethladd/repos","events_url":"https://api.github.com/users/sethladd/events{/privacy}","received_events_url":"https://api.github.com/users/sethladd/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/flutter/flutter/labels/customer:%20gallery","name":"customer: gallery","color":"d4c5f9"},{"url":"https://api.github.com/repos/flutter/flutter/labels/%E2%96%A3%20platform-android","name":"▣ platform-android","color":"A4C639"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/flutter/flutter/milestones/19","html_url":"https://github.com/flutter/flutter/milestones/Top%20Customer%20Requests","labels_url":"https://api.github.com/repos/flutter/flutter/milestones/19/labels","id":1999049,"number":19,"title":"Top Customer Requests","description":"These are issues that our customers have informed us are high priority items where if we failed to address these issues it would put their products at risk.","creator":{"login":"sethladd","id":5479,"avatar_url":"https://avatars.githubusercontent.com/u/5479?v=3","gravatar_id":"","url":"https://api.github.com/users/sethladd","html_url":"https://github.com/sethladd","followers_url":"https://api.github.com/users/sethladd/followers","following_url":"https://api.github.com/users/sethladd/following{/other_user}","gists_url":"https://api.github.com/users/sethladd/gists{/gist_id}","starred_url":"https://api.github.com/users/sethladd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sethladd/subscriptions","organizations_url":"https://api.github.com/users/sethladd/orgs","repos_url":"https://api.github.com/users/sethladd/repos","events_url":"https://api.github.com/users/sethladd/events{/privacy}","received_events_url":"https://api.github.com/users/sethladd/received_events","type":"User","site_admin":false},"open_issues":13,"closed_issues":4,"state":"open","created_at":"2016-09-12T17:40:30Z","updated_at":"2016-09-14T22:23:37Z","due_on":"2016-09-29T00:00:00Z","closed_at":null},"comments":17,"created_at":"2016-08-12T20:19:47Z","updated_at":"2016-09-15T01:01:47Z","closed_at":null,"body":"The Gallery apps starts up with a black screen, before it draws the app itself. This leads to a flashing/jarring first-open experience. Opening many other apps on Android, I notice they start with a white screen.\r\n\r\n(I tested Play Store, Play Music, Android Pay, calculator. They all start with an initial white screen. Drive app starts with a white screen with a static logo. Note: the clock starts blue, but ends with blue so there's no flash. Keep starts with gray, but ends with gray so there's no flash. So many the app can pick which initial color it fills with?)"},"comment":{"url":"https://api.github.com/repos/flutter/flutter/issues/comments/247203434","html_url":"https://github.com/flutter/flutter/issues/5373#issuecomment-247203434","issue_url":"https://api.github.com/repos/flutter/flutter/issues/5373","id":247203434,"user":{"login":"abarth","id":112007,"avatar_url":"https://avatars.githubusercontent.com/u/112007?v=3","gravatar_id":"","url":"https://api.github.com/users/abarth","html_url":"https://github.com/abarth","followers_url":"https://api.github.com/users/abarth/followers","following_url":"https://api.github.com/users/abarth/following{/other_user}","gists_url":"https://api.github.com/users/abarth/gists{/gist_id}","starred_url":"https://api.github.com/users/abarth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abarth/subscriptions","organizations_url":"https://api.github.com/users/abarth/orgs","repos_url":"https://api.github.com/users/abarth/repos","events_url":"https://api.github.com/users/abarth/events{/privacy}","received_events_url":"https://api.github.com/users/abarth/received_events","type":"User","site_admin":false},"created_at":"2016-09-15T01:01:46Z","updated_at":"2016-09-15T01:01:46Z","body":"The white expanding card is drawn by Android while loading our app.  The transparent flash is when Android switches over to rendering our app but we haven't managed to draw anything with GL yet.  The black is the first thing we draw with GL.\r\n\r\nWe could almost certainly replace the black with white, which would look better.  I'm not sure how to remove the transparent flash.  There are lots of articles on stack overflow and such talking about this issue.  The roughly involves holding one of Android's threads hostage while we init GL on another thread.\r\n\r\nAfter the app loads, we could delay drawing the app until the asset images load, at the cost of showing the app later."}}
{"actor":{"display_login":"abarth"}}