{"action":"created","comment":{"url":"https://api.github.com/repos/DongHien0896/asyntask/pulls/comments/203970149","pull_request_review_id":138965171,"id":203970149,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwMzk3MDE0OQ==","diff_hunk":"@@ -1,13 +1,82 @@\n package com.example.dong.demoasynctask;\n \n+import android.Manifest;\n+import android.content.pm.PackageManager;\n+import android.support.v4.app.ActivityCompat;\n+import android.support.v4.content.ContextCompat;\n import android.support.v7.app.AppCompatActivity;\n import android.os.Bundle;\n+import android.support.v7.widget.GridLayoutManager;\n+import android.support.v7.widget.RecyclerView;\n+import android.widget.Toast;\n+\n+import java.util.ArrayList;\n+import java.util.List;\n \n public class MainActivity extends AppCompatActivity {\n \n+    private RecyclerView mRecyclerView;\n+    private List<ItemImage> mlistImage;\n+    private AdapterImage mAdapter;\n+\n     @Override\n     protected void onCreate(Bundle savedInstanceState) {\n         super.onCreate(savedInstanceState);\n         setContentView(R.layout.activity_main);\n+        mRecyclerView = findViewById(R.id.recycler_view);\n+        mlistImage = new ArrayList<>();\n+        checkPermission();\n+    }\n+\n+    private void checkPermission() {\n+        if ((ContextCompat.checkSelfPermission(getApplicationContext(),","path":"DemoAsynctask/app/src/main/java/com/example/dong/demoasynctask/MainActivity.java","position":32,"original_position":32,"commit_id":"4070c65865e5ed048638a9513b30dd0c43077bf9","original_commit_id":"4070c65865e5ed048638a9513b30dd0c43077bf9","user":{"login":"tuannguyen38","id":36411574,"node_id":"MDQ6VXNlcjM2NDExNTc0","avatar_url":"https://avatars3.githubusercontent.com/u/36411574?v=4","gravatar_id":"","url":"https://api.github.com/users/tuannguyen38","html_url":"https://github.com/tuannguyen38","followers_url":"https://api.github.com/users/tuannguyen38/followers","following_url":"https://api.github.com/users/tuannguyen38/following{/other_user}","gists_url":"https://api.github.com/users/tuannguyen38/gists{/gist_id}","starred_url":"https://api.github.com/users/tuannguyen38/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tuannguyen38/subscriptions","organizations_url":"https://api.github.com/users/tuannguyen38/orgs","repos_url":"https://api.github.com/users/tuannguyen38/repos","events_url":"https://api.github.com/users/tuannguyen38/events{/privacy}","received_events_url":"https://api.github.com/users/tuannguyen38/received_events","type":"User","site_admin":false},"body":"tối ưu lại đoạn code dưới này cho dễ nhìn em nhé!","created_at":"2018-07-20T08:20:22Z","updated_at":"2018-07-20T08:21:35Z","html_url":"https://github.com/DongHien0896/asyntask/pull/2#discussion_r203970149","pull_request_url":"https://api.github.com/repos/DongHien0896/asyntask/pulls/2","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/DongHien0896/asyntask/pulls/comments/203970149"},"html":{"href":"https://github.com/DongHien0896/asyntask/pull/2#discussion_r203970149"},"pull_request":{"href":"https://api.github.com/repos/DongHien0896/asyntask/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/DongHien0896/asyntask/pulls/2","id":202774065,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAyNzc0MDY1","html_url":"https://github.com/DongHien0896/asyntask/pull/2","diff_url":"https://github.com/DongHien0896/asyntask/pull/2.diff","patch_url":"https://github.com/DongHien0896/asyntask/pull/2.patch","issue_url":"https://api.github.com/repos/DongHien0896/asyntask/issues/2","number":2,"state":"open","locked":false,"title":"Merge pull request #1 from DongHien0896/create","user":{"login":"DongHien0896","id":40813531,"node_id":"MDQ6VXNlcjQwODEzNTMx","avatar_url":"https://avatars2.githubusercontent.com/u/40813531?v=4","gravatar_id":"","url":"https://api.github.com/users/DongHien0896","html_url":"https://github.com/DongHien0896","followers_url":"https://api.github.com/users/DongHien0896/followers","following_url":"https://api.github.com/users/DongHien0896/following{/other_user}","gists_url":"https://api.github.com/users/DongHien0896/gists{/gist_id}","starred_url":"https://api.github.com/users/DongHien0896/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DongHien0896/subscriptions","organizations_url":"https://api.github.com/users/DongHien0896/orgs","repos_url":"https://api.github.com/users/DongHien0896/repos","events_url":"https://api.github.com/users/DongHien0896/events{/privacy}","received_events_url":"https://api.github.com/users/DongHien0896/received_events","type":"User","site_admin":false},"body":"create","created_at":"2018-07-20T08:00:44Z","updated_at":"2018-07-20T08:21:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"60cb4407325e2a7651fbd0d3fed28b27aa5537bf","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/DongHien0896/asyntask/pulls/2/commits","review_comments_url":"https://api.github.com/repos/DongHien0896/asyntask/pulls/2/comments","review_comment_url":"https://api.github.com/repos/DongHien0896/asyntask/pulls/comments{/number}","comments_url":"https://api.github.com/repos/DongHien0896/asyntask/issues/2/comments","statuses_url":"https://api.github.com/repos/DongHien0896/asyntask/statuses/4070c65865e5ed048638a9513b30dd0c43077bf9","head":{"label":"DongHien0896:code","ref":"code","sha":"4070c65865e5ed048638a9513b30dd0c43077bf9","user":{"login":"DongHien0896","id":40813531,"node_id":"MDQ6VXNlcjQwODEzNTMx","avatar_url":"https://avatars2.githubusercontent.com/u/40813531?v=4","gravatar_id":"","url":"https://api.github.com/users/DongHien0896","html_url":"https://github.com/DongHien0896","followers_url":"https://api.github.com/users/DongHien0896/followers","following_url":"https://api.github.com/users/DongHien0896/following{/other_user}","gists_url":"https://api.github.com/users/DongHien0896/gists{/gist_id}","starred_url":"https://api.github.com/users/DongHien0896/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DongHien0896/subscriptions","organizations_url":"https://api.github.com/users/DongHien0896/orgs","repos_url":"https://api.github.com/users/DongHien0896/repos","events_url":"https://api.github.com/users/DongHien0896/events{/privacy}","received_events_url":"https://api.github.com/users/DongHien0896/received_events","type":"User","site_admin":false},"repo":{"id":141652979,"node_id":"MDEwOlJlcG9zaXRvcnkxNDE2NTI5Nzk=","name":"asyntask","full_name":"DongHien0896/asyntask","owner":{"login":"DongHien0896","id":40813531,"node_id":"MDQ6VXNlcjQwODEzNTMx","avatar_url":"https://avatars2.githubusercontent.com/u/40813531?v=4","gravatar_id":"","url":"https://api.github.com/users/DongHien0896","html_url":"https://github.com/DongHien0896","followers_url":"https://api.github.com/users/DongHien0896/followers","following_url":"https://api.github.com/users/DongHien0896/following{/other_user}","gists_url":"https://api.github.com/users/DongHien0896/gists{/gist_id}","starred_url":"https://api.github.com/users/DongHien0896/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DongHien0896/subscriptions","organizations_url":"https://api.github.com/users/DongHien0896/orgs","repos_url":"https://api.github.com/users/DongHien0896/repos","events_url":"https://api.github.com/users/DongHien0896/events{/privacy}","received_events_url":"https://api.github.com/users/DongHien0896/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/DongHien0896/asyntask","description":null,"fork":false,"url":"https://api.github.com/repos/DongHien0896/asyntask","forks_url":"https://api.github.com/repos/DongHien0896/asyntask/forks","keys_url":"https://api.github.com/repos/DongHien0896/asyntask/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DongHien0896/asyntask/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DongHien0896/asyntask/teams","hooks_url":"https://api.github.com/repos/DongHien0896/asyntask/hooks","issue_events_url":"https://api.github.com/repos/DongHien0896/asyntask/issues/events{/number}","events_url":"https://api.github.com/repos/DongHien0896/asyntask/events","assignees_url":"https://api.github.com/repos/DongHien0896/asyntask/assignees{/user}","branches_url":"https://api.github.com/repos/DongHien0896/asyntask/branches{/branch}","tags_url":"https://api.github.com/repos/DongHien0896/asyntask/tags","blobs_url":"https://api.github.com/repos/DongHien0896/asyntask/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DongHien0896/asyntask/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DongHien0896/asyntask/git/refs{/sha}","trees_url":"https://api.github.com/repos/DongHien0896/asyntask/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DongHien0896/asyntask/statuses/{sha}","languages_url":"https://api.github.com/repos/DongHien0896/asyntask/languages","stargazers_url":"https://api.github.com/repos/DongHien0896/asyntask/stargazers","contributors_url":"https://api.github.com/repos/DongHien0896/asyntask/contributors","subscribers_url":"https://api.github.com/repos/DongHien0896/asyntask/subscribers","subscription_url":"https://api.github.com/repos/DongHien0896/asyntask/subscription","commits_url":"https://api.github.com/repos/DongHien0896/asyntask/commits{/sha}","git_commits_url":"https://api.github.com/repos/DongHien0896/asyntask/git/commits{/sha}","comments_url":"https://api.github.com/repos/DongHien0896/asyntask/comments{/number}","issue_comment_url":"https://api.github.com/repos/DongHien0896/asyntask/issues/comments{/number}","contents_url":"https://api.github.com/repos/DongHien0896/asyntask/contents/{+path}","compare_url":"https://api.github.com/repos/DongHien0896/asyntask/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DongHien0896/asyntask/merges","archive_url":"https://api.github.com/repos/DongHien0896/asyntask/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DongHien0896/asyntask/downloads","issues_url":"https://api.github.com/repos/DongHien0896/asyntask/issues{/number}","pulls_url":"https://api.github.com/repos/DongHien0896/asyntask/pulls{/number}","milestones_url":"https://api.github.com/repos/DongHien0896/asyntask/milestones{/number}","notifications_url":"https://api.github.com/repos/DongHien0896/asyntask/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DongHien0896/asyntask/labels{/name}","releases_url":"https://api.github.com/repos/DongHien0896/asyntask/releases{/id}","deployments_url":"https://api.github.com/repos/DongHien0896/asyntask/deployments","created_at":"2018-07-20T02:23:15Z","updated_at":"2018-07-20T02:41:30Z","pushed_at":"2018-07-20T08:00:45Z","git_url":"git://github.com/DongHien0896/asyntask.git","ssh_url":"git@github.com:DongHien0896/asyntask.git","clone_url":"https://github.com/DongHien0896/asyntask.git","svn_url":"https://github.com/DongHien0896/asyntask","homepage":null,"size":127,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"develop"}},"base":{"label":"DongHien0896:develop","ref":"develop","sha":"874953ba809b3e314a0b16cf7c17246f07b5a6f4","user":{"login":"DongHien0896","id":40813531,"node_id":"MDQ6VXNlcjQwODEzNTMx","avatar_url":"https://avatars2.githubusercontent.com/u/40813531?v=4","gravatar_id":"","url":"https://api.github.com/users/DongHien0896","html_url":"https://github.com/DongHien0896","followers_url":"https://api.github.com/users/DongHien0896/followers","following_url":"https://api.github.com/users/DongHien0896/following{/other_user}","gists_url":"https://api.github.com/users/DongHien0896/gists{/gist_id}","starred_url":"https://api.github.com/users/DongHien0896/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DongHien0896/subscriptions","organizations_url":"https://api.github.com/users/DongHien0896/orgs","repos_url":"https://api.github.com/users/DongHien0896/repos","events_url":"https://api.github.com/users/DongHien0896/events{/privacy}","received_events_url":"https://api.github.com/users/DongHien0896/received_events","type":"User","site_admin":false},"repo":{"id":141652979,"node_id":"MDEwOlJlcG9zaXRvcnkxNDE2NTI5Nzk=","name":"asyntask","full_name":"DongHien0896/asyntask","owner":{"login":"DongHien0896","id":40813531,"node_id":"MDQ6VXNlcjQwODEzNTMx","avatar_url":"https://avatars2.githubusercontent.com/u/40813531?v=4","gravatar_id":"","url":"https://api.github.com/users/DongHien0896","html_url":"https://github.com/DongHien0896","followers_url":"https://api.github.com/users/DongHien0896/followers","following_url":"https://api.github.com/users/DongHien0896/following{/other_user}","gists_url":"https://api.github.com/users/DongHien0896/gists{/gist_id}","starred_url":"https://api.github.com/users/DongHien0896/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DongHien0896/subscriptions","organizations_url":"https://api.github.com/users/DongHien0896/orgs","repos_url":"https://api.github.com/users/DongHien0896/repos","events_url":"https://api.github.com/users/DongHien0896/events{/privacy}","received_events_url":"https://api.github.com/users/DongHien0896/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/DongHien0896/asyntask","description":null,"fork":false,"url":"https://api.github.com/repos/DongHien0896/asyntask","forks_url":"https://api.github.com/repos/DongHien0896/asyntask/forks","keys_url":"https://api.github.com/repos/DongHien0896/asyntask/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DongHien0896/asyntask/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DongHien0896/asyntask/teams","hooks_url":"https://api.github.com/repos/DongHien0896/asyntask/hooks","issue_events_url":"https://api.github.com/repos/DongHien0896/asyntask/issues/events{/number}","events_url":"https://api.github.com/repos/DongHien0896/asyntask/events","assignees_url":"https://api.github.com/repos/DongHien0896/asyntask/assignees{/user}","branches_url":"https://api.github.com/repos/DongHien0896/asyntask/branches{/branch}","tags_url":"https://api.github.com/repos/DongHien0896/asyntask/tags","blobs_url":"https://api.github.com/repos/DongHien0896/asyntask/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DongHien0896/asyntask/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DongHien0896/asyntask/git/refs{/sha}","trees_url":"https://api.github.com/repos/DongHien0896/asyntask/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DongHien0896/asyntask/statuses/{sha}","languages_url":"https://api.github.com/repos/DongHien0896/asyntask/languages","stargazers_url":"https://api.github.com/repos/DongHien0896/asyntask/stargazers","contributors_url":"https://api.github.com/repos/DongHien0896/asyntask/contributors","subscribers_url":"https://api.github.com/repos/DongHien0896/asyntask/subscribers","subscription_url":"https://api.github.com/repos/DongHien0896/asyntask/subscription","commits_url":"https://api.github.com/repos/DongHien0896/asyntask/commits{/sha}","git_commits_url":"https://api.github.com/repos/DongHien0896/asyntask/git/commits{/sha}","comments_url":"https://api.github.com/repos/DongHien0896/asyntask/comments{/number}","issue_comment_url":"https://api.github.com/repos/DongHien0896/asyntask/issues/comments{/number}","contents_url":"https://api.github.com/repos/DongHien0896/asyntask/contents/{+path}","compare_url":"https://api.github.com/repos/DongHien0896/asyntask/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DongHien0896/asyntask/merges","archive_url":"https://api.github.com/repos/DongHien0896/asyntask/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DongHien0896/asyntask/downloads","issues_url":"https://api.github.com/repos/DongHien0896/asyntask/issues{/number}","pulls_url":"https://api.github.com/repos/DongHien0896/asyntask/pulls{/number}","milestones_url":"https://api.github.com/repos/DongHien0896/asyntask/milestones{/number}","notifications_url":"https://api.github.com/repos/DongHien0896/asyntask/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DongHien0896/asyntask/labels{/name}","releases_url":"https://api.github.com/repos/DongHien0896/asyntask/releases{/id}","deployments_url":"https://api.github.com/repos/DongHien0896/asyntask/deployments","created_at":"2018-07-20T02:23:15Z","updated_at":"2018-07-20T02:41:30Z","pushed_at":"2018-07-20T08:00:45Z","git_url":"git://github.com/DongHien0896/asyntask.git","ssh_url":"git@github.com:DongHien0896/asyntask.git","clone_url":"https://github.com/DongHien0896/asyntask.git","svn_url":"https://github.com/DongHien0896/asyntask","homepage":null,"size":127,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/DongHien0896/asyntask/pulls/2"},"html":{"href":"https://github.com/DongHien0896/asyntask/pull/2"},"issue":{"href":"https://api.github.com/repos/DongHien0896/asyntask/issues/2"},"comments":{"href":"https://api.github.com/repos/DongHien0896/asyntask/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/DongHien0896/asyntask/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/DongHien0896/asyntask/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/DongHien0896/asyntask/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/DongHien0896/asyntask/statuses/4070c65865e5ed048638a9513b30dd0c43077bf9"}},"author_association":"OWNER"}}
{"actor":{"display_login":"tuannguyen38"}}