{"action":"created","comment":{"url":"https://api.github.com/repos/robolectric/robolectric/pulls/comments/34310579","id":34310579,"diff_hunk":"@@ -178,6 +188,22 @@ public void run() {\n       }\n     });\n \n+    ViewRootImpl root = component.getWindow().getDecorView().getViewRootImpl();\n+    ShadowViewRootImpl shadow = (ShadowViewRootImpl) ShadowExtractor.extract(root);\n+    Display display = Shadow.newInstanceOf(Display.class);\n+    ShadowDisplay shadowDisplay = Shadows.shadowOf(display);\n+    Rect frame = new Rect(0, 0, shadowDisplay.getWidth(), shadowDisplay.getHeight());\n+    Rect insets = new Rect(0, 0, 0, 0);\n+    if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {","path":"robolectric/src/main/java/org/robolectric/util/ActivityController.java","position":34,"original_position":34,"commit_id":"782333e172431babb59889bea9e8d748fd649f0c","original_commit_id":"741ea8ad379f1d956ba50291e151267535d48e69","user":{"login":"zhongyu05","id":1463311,"avatar_url":"https://avatars.githubusercontent.com/u/1463311?v=3","gravatar_id":"","url":"https://api.github.com/users/zhongyu05","html_url":"https://github.com/zhongyu05","followers_url":"https://api.github.com/users/zhongyu05/followers","following_url":"https://api.github.com/users/zhongyu05/following{/other_user}","gists_url":"https://api.github.com/users/zhongyu05/gists{/gist_id}","starred_url":"https://api.github.com/users/zhongyu05/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhongyu05/subscriptions","organizations_url":"https://api.github.com/users/zhongyu05/orgs","repos_url":"https://api.github.com/users/zhongyu05/repos","events_url":"https://api.github.com/users/zhongyu05/events{/privacy}","received_events_url":"https://api.github.com/users/zhongyu05/received_events","type":"User","site_admin":false},"body":"@jongerrish please disregard the comments about viewRootImpl.java.vm I am in the process of using this pattern to avoid defining a bunch of functions in vm","created_at":"2015-07-09T22:19:35Z","updated_at":"2015-07-09T22:19:35Z","html_url":"https://github.com/robolectric/robolectric/pull/1929#discussion_r34310579","pull_request_url":"https://api.github.com/repos/robolectric/robolectric/pulls/1929","_links":{"self":{"href":"https://api.github.com/repos/robolectric/robolectric/pulls/comments/34310579"},"html":{"href":"https://github.com/robolectric/robolectric/pull/1929#discussion_r34310579"},"pull_request":{"href":"https://api.github.com/repos/robolectric/robolectric/pulls/1929"}}},"pull_request":{"url":"https://api.github.com/repos/robolectric/robolectric/pulls/1929","id":39528019,"html_url":"https://github.com/robolectric/robolectric/pull/1929","diff_url":"https://github.com/robolectric/robolectric/pull/1929.diff","patch_url":"https://github.com/robolectric/robolectric/pull/1929.patch","issue_url":"https://api.github.com/repos/robolectric/robolectric/issues/1929","number":1929,"state":"open","locked":false,"title":"Setting window size in activity lifecycle","user":{"login":"zhongyu05","id":1463311,"avatar_url":"https://avatars.githubusercontent.com/u/1463311?v=3","gravatar_id":"","url":"https://api.github.com/users/zhongyu05","html_url":"https://github.com/zhongyu05","followers_url":"https://api.github.com/users/zhongyu05/followers","following_url":"https://api.github.com/users/zhongyu05/following{/other_user}","gists_url":"https://api.github.com/users/zhongyu05/gists{/gist_id}","starred_url":"https://api.github.com/users/zhongyu05/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhongyu05/subscriptions","organizations_url":"https://api.github.com/users/zhongyu05/orgs","repos_url":"https://api.github.com/users/zhongyu05/repos","events_url":"https://api.github.com/users/zhongyu05/events{/privacy}","received_events_url":"https://api.github.com/users/zhongyu05/received_events","type":"User","site_admin":false},"body":"This is the first step towards layout support.\r\n\r\nRelated issue:\r\nhttps://github.com/robolectric/robolectric/issues/794","created_at":"2015-07-08T21:55:32Z","updated_at":"2015-07-09T22:19:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4c4fa0e0e277d75d8fa3a47b1e2d5ada0e593a24","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/robolectric/robolectric/pulls/1929/commits","review_comments_url":"https://api.github.com/repos/robolectric/robolectric/pulls/1929/comments","review_comment_url":"https://api.github.com/repos/robolectric/robolectric/pulls/comments{/number}","comments_url":"https://api.github.com/repos/robolectric/robolectric/issues/1929/comments","statuses_url":"https://api.github.com/repos/robolectric/robolectric/statuses/782333e172431babb59889bea9e8d748fd649f0c","head":{"label":"zhongyu05:winFrame","ref":"winFrame","sha":"782333e172431babb59889bea9e8d748fd649f0c","user":{"login":"zhongyu05","id":1463311,"avatar_url":"https://avatars.githubusercontent.com/u/1463311?v=3","gravatar_id":"","url":"https://api.github.com/users/zhongyu05","html_url":"https://github.com/zhongyu05","followers_url":"https://api.github.com/users/zhongyu05/followers","following_url":"https://api.github.com/users/zhongyu05/following{/other_user}","gists_url":"https://api.github.com/users/zhongyu05/gists{/gist_id}","starred_url":"https://api.github.com/users/zhongyu05/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhongyu05/subscriptions","organizations_url":"https://api.github.com/users/zhongyu05/orgs","repos_url":"https://api.github.com/users/zhongyu05/repos","events_url":"https://api.github.com/users/zhongyu05/events{/privacy}","received_events_url":"https://api.github.com/users/zhongyu05/received_events","type":"User","site_admin":false},"repo":{"id":36766832,"name":"robolectric","full_name":"zhongyu05/robolectric","owner":{"login":"zhongyu05","id":1463311,"avatar_url":"https://avatars.githubusercontent.com/u/1463311?v=3","gravatar_id":"","url":"https://api.github.com/users/zhongyu05","html_url":"https://github.com/zhongyu05","followers_url":"https://api.github.com/users/zhongyu05/followers","following_url":"https://api.github.com/users/zhongyu05/following{/other_user}","gists_url":"https://api.github.com/users/zhongyu05/gists{/gist_id}","starred_url":"https://api.github.com/users/zhongyu05/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhongyu05/subscriptions","organizations_url":"https://api.github.com/users/zhongyu05/orgs","repos_url":"https://api.github.com/users/zhongyu05/repos","events_url":"https://api.github.com/users/zhongyu05/events{/privacy}","received_events_url":"https://api.github.com/users/zhongyu05/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/zhongyu05/robolectric","description":"Android Unit Testing Framework","fork":true,"url":"https://api.github.com/repos/zhongyu05/robolectric","forks_url":"https://api.github.com/repos/zhongyu05/robolectric/forks","keys_url":"https://api.github.com/repos/zhongyu05/robolectric/keys{/key_id}","collaborators_url":"https://api.github.com/repos/zhongyu05/robolectric/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/zhongyu05/robolectric/teams","hooks_url":"https://api.github.com/repos/zhongyu05/robolectric/hooks","issue_events_url":"https://api.github.com/repos/zhongyu05/robolectric/issues/events{/number}","events_url":"https://api.github.com/repos/zhongyu05/robolectric/events","assignees_url":"https://api.github.com/repos/zhongyu05/robolectric/assignees{/user}","branches_url":"https://api.github.com/repos/zhongyu05/robolectric/branches{/branch}","tags_url":"https://api.github.com/repos/zhongyu05/robolectric/tags","blobs_url":"https://api.github.com/repos/zhongyu05/robolectric/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/zhongyu05/robolectric/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/zhongyu05/robolectric/git/refs{/sha}","trees_url":"https://api.github.com/repos/zhongyu05/robolectric/git/trees{/sha}","statuses_url":"https://api.github.com/repos/zhongyu05/robolectric/statuses/{sha}","languages_url":"https://api.github.com/repos/zhongyu05/robolectric/languages","stargazers_url":"https://api.github.com/repos/zhongyu05/robolectric/stargazers","contributors_url":"https://api.github.com/repos/zhongyu05/robolectric/contributors","subscribers_url":"https://api.github.com/repos/zhongyu05/robolectric/subscribers","subscription_url":"https://api.github.com/repos/zhongyu05/robolectric/subscription","commits_url":"https://api.github.com/repos/zhongyu05/robolectric/commits{/sha}","git_commits_url":"https://api.github.com/repos/zhongyu05/robolectric/git/commits{/sha}","comments_url":"https://api.github.com/repos/zhongyu05/robolectric/comments{/number}","issue_comment_url":"https://api.github.com/repos/zhongyu05/robolectric/issues/comments{/number}","contents_url":"https://api.github.com/repos/zhongyu05/robolectric/contents/{+path}","compare_url":"https://api.github.com/repos/zhongyu05/robolectric/compare/{base}...{head}","merges_url":"https://api.github.com/repos/zhongyu05/robolectric/merges","archive_url":"https://api.github.com/repos/zhongyu05/robolectric/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/zhongyu05/robolectric/downloads","issues_url":"https://api.github.com/repos/zhongyu05/robolectric/issues{/number}","pulls_url":"https://api.github.com/repos/zhongyu05/robolectric/pulls{/number}","milestones_url":"https://api.github.com/repos/zhongyu05/robolectric/milestones{/number}","notifications_url":"https://api.github.com/repos/zhongyu05/robolectric/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/zhongyu05/robolectric/labels{/name}","releases_url":"https://api.github.com/repos/zhongyu05/robolectric/releases{/id}","created_at":"2015-06-02T23:00:36Z","updated_at":"2015-06-02T23:00:40Z","pushed_at":"2015-07-09T21:12:18Z","git_url":"git://github.com/zhongyu05/robolectric.git","ssh_url":"git@github.com:zhongyu05/robolectric.git","clone_url":"https://github.com/zhongyu05/robolectric.git","svn_url":"https://github.com/zhongyu05/robolectric","homepage":"http://robolectric.org","size":28500,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"robolectric:master","ref":"master","sha":"82cb1fcc748e7777ed18dbbdc7eab39f8144a38d","user":{"login":"robolectric","id":3988212,"avatar_url":"https://avatars.githubusercontent.com/u/3988212?v=3","gravatar_id":"","url":"https://api.github.com/users/robolectric","html_url":"https://github.com/robolectric","followers_url":"https://api.github.com/users/robolectric/followers","following_url":"https://api.github.com/users/robolectric/following{/other_user}","gists_url":"https://api.github.com/users/robolectric/gists{/gist_id}","starred_url":"https://api.github.com/users/robolectric/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robolectric/subscriptions","organizations_url":"https://api.github.com/users/robolectric/orgs","repos_url":"https://api.github.com/users/robolectric/repos","events_url":"https://api.github.com/users/robolectric/events{/privacy}","received_events_url":"https://api.github.com/users/robolectric/received_events","type":"Organization","site_admin":false},"repo":{"id":867564,"name":"robolectric","full_name":"robolectric/robolectric","owner":{"login":"robolectric","id":3988212,"avatar_url":"https://avatars.githubusercontent.com/u/3988212?v=3","gravatar_id":"","url":"https://api.github.com/users/robolectric","html_url":"https://github.com/robolectric","followers_url":"https://api.github.com/users/robolectric/followers","following_url":"https://api.github.com/users/robolectric/following{/other_user}","gists_url":"https://api.github.com/users/robolectric/gists{/gist_id}","starred_url":"https://api.github.com/users/robolectric/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robolectric/subscriptions","organizations_url":"https://api.github.com/users/robolectric/orgs","repos_url":"https://api.github.com/users/robolectric/repos","events_url":"https://api.github.com/users/robolectric/events{/privacy}","received_events_url":"https://api.github.com/users/robolectric/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/robolectric/robolectric","description":"Android Unit Testing Framework","fork":true,"url":"https://api.github.com/repos/robolectric/robolectric","forks_url":"https://api.github.com/repos/robolectric/robolectric/forks","keys_url":"https://api.github.com/repos/robolectric/robolectric/keys{/key_id}","collaborators_url":"https://api.github.com/repos/robolectric/robolectric/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/robolectric/robolectric/teams","hooks_url":"https://api.github.com/repos/robolectric/robolectric/hooks","issue_events_url":"https://api.github.com/repos/robolectric/robolectric/issues/events{/number}","events_url":"https://api.github.com/repos/robolectric/robolectric/events","assignees_url":"https://api.github.com/repos/robolectric/robolectric/assignees{/user}","branches_url":"https://api.github.com/repos/robolectric/robolectric/branches{/branch}","tags_url":"https://api.github.com/repos/robolectric/robolectric/tags","blobs_url":"https://api.github.com/repos/robolectric/robolectric/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/robolectric/robolectric/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/robolectric/robolectric/git/refs{/sha}","trees_url":"https://api.github.com/repos/robolectric/robolectric/git/trees{/sha}","statuses_url":"https://api.github.com/repos/robolectric/robolectric/statuses/{sha}","languages_url":"https://api.github.com/repos/robolectric/robolectric/languages","stargazers_url":"https://api.github.com/repos/robolectric/robolectric/stargazers","contributors_url":"https://api.github.com/repos/robolectric/robolectric/contributors","subscribers_url":"https://api.github.com/repos/robolectric/robolectric/subscribers","subscription_url":"https://api.github.com/repos/robolectric/robolectric/subscription","commits_url":"https://api.github.com/repos/robolectric/robolectric/commits{/sha}","git_commits_url":"https://api.github.com/repos/robolectric/robolectric/git/commits{/sha}","comments_url":"https://api.github.com/repos/robolectric/robolectric/comments{/number}","issue_comment_url":"https://api.github.com/repos/robolectric/robolectric/issues/comments{/number}","contents_url":"https://api.github.com/repos/robolectric/robolectric/contents/{+path}","compare_url":"https://api.github.com/repos/robolectric/robolectric/compare/{base}...{head}","merges_url":"https://api.github.com/repos/robolectric/robolectric/merges","archive_url":"https://api.github.com/repos/robolectric/robolectric/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/robolectric/robolectric/downloads","issues_url":"https://api.github.com/repos/robolectric/robolectric/issues{/number}","pulls_url":"https://api.github.com/repos/robolectric/robolectric/pulls{/number}","milestones_url":"https://api.github.com/repos/robolectric/robolectric/milestones{/number}","notifications_url":"https://api.github.com/repos/robolectric/robolectric/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/robolectric/robolectric/labels{/name}","releases_url":"https://api.github.com/repos/robolectric/robolectric/releases{/id}","created_at":"2010-08-28T00:28:25Z","updated_at":"2015-07-09T19:42:00Z","pushed_at":"2015-07-09T21:12:19Z","git_url":"git://github.com/robolectric/robolectric.git","ssh_url":"git@github.com:robolectric/robolectric.git","clone_url":"https://github.com/robolectric/robolectric.git","svn_url":"https://github.com/robolectric/robolectric","homepage":"http://robolectric.org","size":54514,"stargazers_count":1796,"watchers_count":1796,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":689,"mirror_url":null,"open_issues_count":158,"forks":689,"open_issues":158,"watchers":1796,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/robolectric/robolectric/pulls/1929"},"html":{"href":"https://github.com/robolectric/robolectric/pull/1929"},"issue":{"href":"https://api.github.com/repos/robolectric/robolectric/issues/1929"},"comments":{"href":"https://api.github.com/repos/robolectric/robolectric/issues/1929/comments"},"review_comments":{"href":"https://api.github.com/repos/robolectric/robolectric/pulls/1929/comments"},"review_comment":{"href":"https://api.github.com/repos/robolectric/robolectric/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/robolectric/robolectric/pulls/1929/commits"},"statuses":{"href":"https://api.github.com/repos/robolectric/robolectric/statuses/782333e172431babb59889bea9e8d748fd649f0c"}}}}