GitHub PullRequestReviewCommentEvent at 2014-06-10 17:30:17
Repository: SlidingMenu
Actor: econ0003
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/GreatCall-Android/SlidingMenu/pulls/comments/13607220","id":13607220,"diff_hunk":"@@ -1020,5 +1020,42 @@ public void run() {\n \t\t\t});\n \t\t}\n \t}\n+\t\n+\tpublic void adjustWidthOffsetOnFlyRes(int resID){\n+\t\tint i = (int) getContext().getResources().getDimension(resID);\n+\t\tadjustWidthOffsetOnFly(i);\n+\t}\n+\t\n+\t@SuppressWarnings(\"deprecation\")\n+\tpublic void adjustWidthOffsetOnFly(int offset){\n+\t\t\n+\t\tint displayWidth;\n+\t\t\n+\t\tDisplay display = ((WindowManager) getContext()\n+\t\t\t\t.getSystemService(Context.WINDOW_SERVICE))\n+\t\t\t\t.getDefaultDisplay();\n+\t\t\n+\t\ttry {\n+\t\t\t\n+\t\t\tClass<?> cls = Display.class;","path":"library/src/com/jeremyfeinstein/slidingmenu/lib/SlidingMenu.java","position":21,"original_position":21,"commit_id":"eb300f6dd4993e1f937b424bdc89f2b4e8fb156c","original_commit_id":"eb300f6dd4993e1f937b424bdc89f2b4e8fb156c","user":{"login":"econ0003","id":5014914,"avatar_url":"https://avatars.githubusercontent.com/u/5014914?","gravatar_id":"e99a9e904d4ec44477e8431007819b14","url":"https://api.github.com/users/econ0003","html_url":"https://github.com/econ0003","followers_url":"https://api.github.com/users/econ0003/followers","following_url":"https://api.github.com/users/econ0003/following{/other_user}","gists_url":"https://api.github.com/users/econ0003/gists{/gist_id}","starred_url":"https://api.github.com/users/econ0003/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/econ0003/subscriptions","organizations_url":"https://api.github.com/users/econ0003/orgs","repos_url":"https://api.github.com/users/econ0003/repos","events_url":"https://api.github.com/users/econ0003/events{/privacy}","received_events_url":"https://api.github.com/users/econ0003/received_events","type":"User","site_admin":false},"body":"Is there a better way to do this rather than using reflection?","created_at":"2014-06-10T17:30:17Z","updated_at":"2014-06-10T17:30:17Z","html_url":"https://github.com/GreatCall-Android/SlidingMenu/pull/2#discussion_r13607220","pull_request_url":"https://api.github.com/repos/GreatCall-Android/SlidingMenu/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/GreatCall-Android/SlidingMenu/pulls/comments/13607220"},"html":{"href":"https://github.com/GreatCall-Android/SlidingMenu/pull/2#discussion_r13607220"},"pull_request":{"href":"https://api.github.com/repos/GreatCall-Android/SlidingMenu/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/GreatCall-Android/SlidingMenu/pulls/2","id":16951372,"html_url":"https://github.com/GreatCall-Android/SlidingMenu/pull/2","diff_url":"https://github.com/GreatCall-Android/SlidingMenu/pull/2.diff","patch_url":"https://github.com/GreatCall-Android/SlidingMenu/pull/2.patch","issue_url":"https://api.github.com/repos/GreatCall-Android/SlidingMenu/issues/2","number":2,"state":"open","title":"Feature/dynamic menu change","user":{"login":"satya-kodukula","id":2224392,"avatar_url":"https://avatars.githubusercontent.com/u/2224392?","gravatar_id":"f984dd89f8ddf31ac542e3d1f85449d6","url":"https://api.github.com/users/satya-kodukula","html_url":"https://github.com/satya-kodukula","followers_url":"https://api.github.com/users/satya-kodukula/followers","following_url":"https://api.github.com/users/satya-kodukula/following{/other_user}","gists_url":"https://api.github.com/users/satya-kodukula/gists{/gist_id}","starred_url":"https://api.github.com/users/satya-kodukula/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/satya-kodukula/subscriptions","organizations_url":"https://api.github.com/users/satya-kodukula/orgs","repos_url":"https://api.github.com/users/satya-kodukula/repos","events_url":"https://api.github.com/users/satya-kodukula/events{/privacy}","received_events_url":"https://api.github.com/users/satya-kodukula/received_events","type":"User","site_admin":false},"body":"","created_at":"2014-06-10T16:47:33Z","updated_at":"2014-06-10T17:30:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"edcfd350357224dc65bfa1540ff7d7b8ec1f1dae","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/GreatCall-Android/SlidingMenu/pulls/2/commits","review_comments_url":"https://api.github.com/repos/GreatCall-Android/SlidingMenu/pulls/2/comments","review_comment_url":"https://api.github.com/repos/GreatCall-Android/SlidingMenu/pulls/comments/{number}","comments_url":"https://api.github.com/repos/GreatCall-Android/SlidingMenu/issues/2/comments","statuses_url":"https://api.github.com/repos/GreatCall-Android/SlidingMenu/statuses/eb300f6dd4993e1f937b424bdc89f2b4e8fb156c","head":{"label":"GreatCall-Android:feature/dynamic_menu_change","ref":"feature/dynamic_menu_change","sha":"eb300f6dd4993e1f937b424bdc89f2b4e8fb156c","user":{"login":"GreatCall-Android","id":4931804,"avatar_url":"https://avatars.githubusercontent.com/u/4931804?","gravatar_id":"e398540b72c8aff644033ab91cf5f784","url":"https://api.github.com/users/GreatCall-Android","html_url":"https://github.com/GreatCall-Android","followers_url":"https://api.github.com/users/GreatCall-Android/followers","following_url":"https://api.github.com/users/GreatCall-Android/following{/other_user}","gists_url":"https://api.github.com/users/GreatCall-Android/gists{/gist_id}","starred_url":"https://api.github.com/users/GreatCall-Android/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GreatCall-Android/subscriptions","organizations_url":"https://api.github.com/users/GreatCall-Android/orgs","repos_url":"https://api.github.com/users/GreatCall-Android/repos","events_url":"https://api.github.com/users/GreatCall-Android/events{/privacy}","received_events_url":"https://api.github.com/users/GreatCall-Android/received_events","type":"User","site_admin":false},"repo":{"id":11693176,"name":"SlidingMenu","full_name":"GreatCall-Android/SlidingMenu","owner":{"login":"GreatCall-Android","id":4931804,"avatar_url":"https://avatars.githubusercontent.com/u/4931804?","gravatar_id":"e398540b72c8aff644033ab91cf5f784","url":"https://api.github.com/users/GreatCall-Android","html_url":"https://github.com/GreatCall-Android","followers_url":"https://api.github.com/users/GreatCall-Android/followers","following_url":"https://api.github.com/users/GreatCall-Android/following{/other_user}","gists_url":"https://api.github.com/users/GreatCall-Android/gists{/gist_id}","starred_url":"https://api.github.com/users/GreatCall-Android/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GreatCall-Android/subscriptions","organizations_url":"https://api.github.com/users/GreatCall-Android/orgs","repos_url":"https://api.github.com/users/GreatCall-Android/repos","events_url":"https://api.github.com/users/GreatCall-Android/events{/privacy}","received_events_url":"https://api.github.com/users/GreatCall-Android/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/GreatCall-Android/SlidingMenu","description":"An Android library that allows you to easily create applications with slide-in menus. You may use it in your Android apps provided that you cite this project and include the license in your app. Thanks!","fork":true,"url":"https://api.github.com/repos/GreatCall-Android/SlidingMenu","forks_url":"https://api.github.com/repos/GreatCall-Android/SlidingMenu/forks","keys_url":"https://api.github.com/repos/GreatCall-Android/SlidingMenu/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GreatCall-Android/SlidingMenu/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GreatCall-Android/SlidingMenu/teams","hooks_url":"https://api.github.com/repos/GreatCall-Android/SlidingMenu/hooks","issue_events_url":"https://api.github.com/repos/GreatCall-Android/SlidingMenu/issues/events{/number}","events_url":"https://api.github.com/repos/GreatCall-Android/SlidingMenu/events","assignees_url":"https://api.github.com/repos/GreatCall-Android/SlidingMenu/assignees{/user}","branches_url":"https://api.github.com/repos/GreatCall-Android/SlidingMenu/branches{/branch}","tags_url":"https://api.github.com/repos/GreatCall-Android/SlidingMenu/tags","blobs_url":"https://api.github.com/repos/GreatCall-Android/SlidingMenu/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GreatCall-Android/SlidingMenu/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GreatCall-Android/SlidingMenu/git/refs{/sha}","trees_url":"https://api.github.com/repos/GreatCall-Android/SlidingMenu/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GreatCall-Android/SlidingMenu/statuses/{sha}","languages_url":"https://api.github.com/repos/GreatCall-Android/SlidingMenu/languages","stargazers_url":"https://api.github.com/repos/GreatCall-Android/SlidingMenu/stargazers","contributors_url":"https://api.github.com/repos/GreatCall-Android/SlidingMenu/contributors","subscribers_url":"https://api.github.com/repos/GreatCall-Android/SlidingMenu/subscribers","subscription_url":"https://api.github.com/repos/GreatCall-Android/SlidingMenu/subscription","commits_url":"https://api.github.com/repos/GreatCall-Android/SlidingMenu/commits{/sha}","git_commits_url":"https://api.github.com/repos/GreatCall-Android/SlidingMenu/git/commits{/sha}","comments_url":"https://api.github.com/repos/GreatCall-Android/SlidingMenu/comments{/number}","issue_comment_url":"https://api.github.com/repos/GreatCall-Android/SlidingMenu/issues/comments/{number}","contents_url":"https://api.github.com/repos/GreatCall-Android/SlidingMenu/contents/{+path}","compare_url":"https://api.github.com/repos/GreatCall-Android/SlidingMenu/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GreatCall-Android/SlidingMenu/merges","archive_url":"https://api.github.com/repos/GreatCall-Android/SlidingMenu/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GreatCall-Android/SlidingMenu/downloads","issues_url":"https://api.github.com/repos/GreatCall-Android/SlidingMenu/issues{/number}","pulls_url":"https://api.github.com/repos/GreatCall-Android/SlidingMenu/pulls{/number}","milestones_url":"https://api.github.com/repos/GreatCall-Android/SlidingMenu/milestones{/number}","notifications_url":"https://api.github.com/repos/GreatCall-Android/SlidingMenu/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GreatCall-Android/SlidingMenu/labels{/name}","releases_url":"https://api.github.com/repos/GreatCall-Android/SlidingMenu/releases{/id}","created_at":"2013-07-26T19:29:03Z","updated_at":"2014-06-10T16:47:33Z","pushed_at":"2014-06-10T16:42:32Z","git_url":"git://github.com/GreatCall-Android/SlidingMenu.git","ssh_url":"git@github.com:GreatCall-Android/SlidingMenu.git","clone_url":"https://github.com/GreatCall-Android/SlidingMenu.git","svn_url":"https://github.com/GreatCall-Android/SlidingMenu","homepage":"","size":24703,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"develop"}},"base":{"label":"GreatCall-Android:develop","ref":"develop","sha":"6e219545157d9f4a39c1e99d163ff7e22cea83bc","user":{"login":"GreatCall-Android","id":4931804,"avatar_url":"https://avatars.githubusercontent.com/u/4931804?","gravatar_id":"e398540b72c8aff644033ab91cf5f784","url":"https://api.github.com/users/GreatCall-Android","html_url":"https://github.com/GreatCall-Android","followers_url":"https://api.github.com/users/GreatCall-Android/followers","following_url":"https://api.github.com/users/GreatCall-Android/following{/other_user}","gists_url":"https://api.github.com/users/GreatCall-Android/gists{/gist_id}","starred_url":"https://api.github.com/users/GreatCall-Android/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GreatCall-Android/subscriptions","organizations_url":"https://api.github.com/users/GreatCall-Android/orgs","repos_url":"https://api.github.com/users/GreatCall-Android/repos","events_url":"https://api.github.com/users/GreatCall-Android/events{/privacy}","received_events_url":"https://api.github.com/users/GreatCall-Android/received_events","type":"User","site_admin":false},"repo":{"id":11693176,"name":"SlidingMenu","full_name":"GreatCall-Android/SlidingMenu","owner":{"login":"GreatCall-Android","id":4931804,"avatar_url":"https://avatars.githubusercontent.com/u/4931804?","gravatar_id":"e398540b72c8aff644033ab91cf5f784","url":"https://api.github.com/users/GreatCall-Android","html_url":"https://github.com/GreatCall-Android","followers_url":"https://api.github.com/users/GreatCall-Android/followers","following_url":"https://api.github.com/users/GreatCall-Android/following{/other_user}","gists_url":"https://api.github.com/users/GreatCall-Android/gists{/gist_id}","starred_url":"https://api.github.com/users/GreatCall-Android/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GreatCall-Android/subscriptions","organizations_url":"https://api.github.com/users/GreatCall-Android/orgs","repos_url":"https://api.github.com/users/GreatCall-Android/repos","events_url":"https://api.github.com/users/GreatCall-Android/events{/privacy}","received_events_url":"https://api.github.com/users/GreatCall-Android/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/GreatCall-Android/SlidingMenu","description":"An Android library that allows you to easily create applications with slide-in menus. You may use it in your Android apps provided that you cite this project and include the license in your app. Thanks!","fork":true,"url":"https://api.github.com/repos/GreatCall-Android/SlidingMenu","forks_url":"https://api.github.com/repos/GreatCall-Android/SlidingMenu/forks","keys_url":"https://api.github.com/repos/GreatCall-Android/SlidingMenu/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GreatCall-Android/SlidingMenu/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GreatCall-Android/SlidingMenu/teams","hooks_url":"https://api.github.com/repos/GreatCall-Android/SlidingMenu/hooks","issue_events_url":"https://api.github.com/repos/GreatCall-Android/SlidingMenu/issues/events{/number}","events_url":"https://api.github.com/repos/GreatCall-Android/SlidingMenu/events","assignees_url":"https://api.github.com/repos/GreatCall-Android/SlidingMenu/assignees{/user}","branches_url":"https://api.github.com/repos/GreatCall-Android/SlidingMenu/branches{/branch}","tags_url":"https://api.github.com/repos/GreatCall-Android/SlidingMenu/tags","blobs_url":"https://api.github.com/repos/GreatCall-Android/SlidingMenu/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GreatCall-Android/SlidingMenu/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GreatCall-Android/SlidingMenu/git/refs{/sha}","trees_url":"https://api.github.com/repos/GreatCall-Android/SlidingMenu/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GreatCall-Android/SlidingMenu/statuses/{sha}","languages_url":"https://api.github.com/repos/GreatCall-Android/SlidingMenu/languages","stargazers_url":"https://api.github.com/repos/GreatCall-Android/SlidingMenu/stargazers","contributors_url":"https://api.github.com/repos/GreatCall-Android/SlidingMenu/contributors","subscribers_url":"https://api.github.com/repos/GreatCall-Android/SlidingMenu/subscribers","subscription_url":"https://api.github.com/repos/GreatCall-Android/SlidingMenu/subscription","commits_url":"https://api.github.com/repos/GreatCall-Android/SlidingMenu/commits{/sha}","git_commits_url":"https://api.github.com/repos/GreatCall-Android/SlidingMenu/git/commits{/sha}","comments_url":"https://api.github.com/repos/GreatCall-Android/SlidingMenu/comments{/number}","issue_comment_url":"https://api.github.com/repos/GreatCall-Android/SlidingMenu/issues/comments/{number}","contents_url":"https://api.github.com/repos/GreatCall-Android/SlidingMenu/contents/{+path}","compare_url":"https://api.github.com/repos/GreatCall-Android/SlidingMenu/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GreatCall-Android/SlidingMenu/merges","archive_url":"https://api.github.com/repos/GreatCall-Android/SlidingMenu/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GreatCall-Android/SlidingMenu/downloads","issues_url":"https://api.github.com/repos/GreatCall-Android/SlidingMenu/issues{/number}","pulls_url":"https://api.github.com/repos/GreatCall-Android/SlidingMenu/pulls{/number}","milestones_url":"https://api.github.com/repos/GreatCall-Android/SlidingMenu/milestones{/number}","notifications_url":"https://api.github.com/repos/GreatCall-Android/SlidingMenu/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GreatCall-Android/SlidingMenu/labels{/name}","releases_url":"https://api.github.com/repos/GreatCall-Android/SlidingMenu/releases{/id}","created_at":"2013-07-26T19:29:03Z","updated_at":"2014-06-10T16:47:33Z","pushed_at":"2014-06-10T16:42:32Z","git_url":"git://github.com/GreatCall-Android/SlidingMenu.git","ssh_url":"git@github.com:GreatCall-Android/SlidingMenu.git","clone_url":"https://github.com/GreatCall-Android/SlidingMenu.git","svn_url":"https://github.com/GreatCall-Android/SlidingMenu","homepage":"","size":24703,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/GreatCall-Android/SlidingMenu/pulls/2"},"html":{"href":"https://github.com/GreatCall-Android/SlidingMenu/pull/2"},"issue":{"href":"https://api.github.com/repos/GreatCall-Android/SlidingMenu/issues/2"},"comments":{"href":"https://api.github.com/repos/GreatCall-Android/SlidingMenu/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/GreatCall-Android/SlidingMenu/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/GreatCall-Android/SlidingMenu/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/GreatCall-Android/SlidingMenu/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/GreatCall-Android/SlidingMenu/statuses/eb300f6dd4993e1f937b424bdc89f2b4e8fb156c"}}}}