{"action":"created","issue":{"url":"https://api.github.com/repos/crosswalk-project/crosswalk/issues/3247","labels_url":"https://api.github.com/repos/crosswalk-project/crosswalk/issues/3247/labels{/name}","comments_url":"https://api.github.com/repos/crosswalk-project/crosswalk/issues/3247/comments","events_url":"https://api.github.com/repos/crosswalk-project/crosswalk/issues/3247/events","html_url":"https://github.com/crosswalk-project/crosswalk/pull/3247","id":105508531,"number":3247,"title":"[Android] Fix the error that the screen flashes at startup","user":{"login":"lincsoon","id":1285835,"avatar_url":"https://avatars.githubusercontent.com/u/1285835?v=3","gravatar_id":"","url":"https://api.github.com/users/lincsoon","html_url":"https://github.com/lincsoon","followers_url":"https://api.github.com/users/lincsoon/followers","following_url":"https://api.github.com/users/lincsoon/following{/other_user}","gists_url":"https://api.github.com/users/lincsoon/gists{/gist_id}","starred_url":"https://api.github.com/users/lincsoon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lincsoon/subscriptions","organizations_url":"https://api.github.com/users/lincsoon/orgs","repos_url":"https://api.github.com/users/lincsoon/repos","events_url":"https://api.github.com/users/lincsoon/events{/privacy}","received_events_url":"https://api.github.com/users/lincsoon/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-09-09T02:56:27Z","updated_at":"2015-09-10T02:25:15Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/crosswalk-project/crosswalk/pulls/3247","html_url":"https://github.com/crosswalk-project/crosswalk/pull/3247","diff_url":"https://github.com/crosswalk-project/crosswalk/pull/3247.diff","patch_url":"https://github.com/crosswalk-project/crosswalk/pull/3247.patch"},"body":"The moment when the XWalkViewBridge is added to the XWalkView, the\r\nscreen flashes black. The reason is when the SurfaceView appears\r\nin the window the fist time, it requests the window's parameters\r\nchanging by calling IWindowSession.relayout(). But if the window\r\nalready has appropriate parameters, it will not refresh all the\r\nwindow's stuff and the screen will not blink. So we add a 0px\r\nSurfaceView at first. This will recreate the window before the\r\nactivity is shown on the screen, and when the actual XWalkViewBridge\r\nis added, it will just continue to use the window with current\r\nparameters. The temporary SurfaceView can be removed at last.\r\n\r\nBUG=XWALK-4966"},"comment":{"url":"https://api.github.com/repos/crosswalk-project/crosswalk/issues/comments/139097863","html_url":"https://github.com/crosswalk-project/crosswalk/pull/3247#issuecomment-139097863","issue_url":"https://api.github.com/repos/crosswalk-project/crosswalk/issues/3247","id":139097863,"user":{"login":"crosswalk-trybot","id":6804778,"avatar_url":"https://avatars.githubusercontent.com/u/6804778?v=3","gravatar_id":"","url":"https://api.github.com/users/crosswalk-trybot","html_url":"https://github.com/crosswalk-trybot","followers_url":"https://api.github.com/users/crosswalk-trybot/followers","following_url":"https://api.github.com/users/crosswalk-trybot/following{/other_user}","gists_url":"https://api.github.com/users/crosswalk-trybot/gists{/gist_id}","starred_url":"https://api.github.com/users/crosswalk-trybot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crosswalk-trybot/subscriptions","organizations_url":"https://api.github.com/users/crosswalk-trybot/orgs","repos_url":"https://api.github.com/users/crosswalk-trybot/repos","events_url":"https://api.github.com/users/crosswalk-trybot/events{/privacy}","received_events_url":"https://api.github.com/users/crosswalk-trybot/received_events","type":"User","site_admin":false},"created_at":"2015-09-10T02:25:15Z","updated_at":"2015-09-10T02:25:15Z","body":"The patch series with lincsoon/crosswalk@6deb9f0c195963d2d59c973ccc7451c7db5f044a as head will be tested soon."}}