{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/iWeather_02/pulls/comments/167136200","pull_request_review_id":95311546,"id":167136200,"diff_hunk":"@@ -1,52 +1,217 @@\n package com.framgia.music.activity;\n \n+import android.Manifest;\n+import android.content.Intent;\n+import android.content.pm.PackageManager;\n+import android.location.Location;\n+import android.support.annotation.NonNull;\n import android.support.design.widget.TabLayout;\n+import android.support.v4.app.ActivityCompat;\n import android.support.v4.app.FragmentManager;\n+import android.support.v4.content.ContextCompat;\n import android.support.v4.view.ViewPager;\n import android.support.v7.app.AppCompatActivity;\n import android.os.Bundle;\n+import android.view.Menu;\n+import android.view.MenuItem;\n+import android.widget.Toast;\n+import com.framgia.music.Constants;\n import com.framgia.music.FetchDataAsyncTask;\n import com.framgia.music.OnFetchData;\n import com.framgia.music.R;\n import com.framgia.music.adapter.ViewPagesAdapter;\n+import com.framgia.music.model.HistoriesLocation;\n import com.framgia.music.model.LocationWeather;\n+import com.google.android.gms.common.ConnectionResult;\n+import com.google.android.gms.common.GoogleApiAvailability;\n+import com.google.android.gms.common.api.GoogleApiClient;\n+import com.google.android.gms.location.LocationRequest;\n+import com.google.android.gms.location.LocationServices;\n+import java.util.List;","path":"app/src/main/java/com/framgia/music/activity/MainActivity.java","position":30,"original_position":30,"commit_id":"111d828c9155474d55291f5c90853da8315877e9","original_commit_id":"111d828c9155474d55291f5c90853da8315877e9","user":{"login":"le-quang-dao","id":6355989,"avatar_url":"https://avatars3.githubusercontent.com/u/6355989?v=4","gravatar_id":"","url":"https://api.github.com/users/le-quang-dao","html_url":"https://github.com/le-quang-dao","followers_url":"https://api.github.com/users/le-quang-dao/followers","following_url":"https://api.github.com/users/le-quang-dao/following{/other_user}","gists_url":"https://api.github.com/users/le-quang-dao/gists{/gist_id}","starred_url":"https://api.github.com/users/le-quang-dao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/le-quang-dao/subscriptions","organizations_url":"https://api.github.com/users/le-quang-dao/orgs","repos_url":"https://api.github.com/users/le-quang-dao/repos","events_url":"https://api.github.com/users/le-quang-dao/events{/privacy}","received_events_url":"https://api.github.com/users/le-quang-dao/received_events","type":"User","site_admin":false},"body":"WARNING: [UnusedImports] Avoid unused imports such as 'java.util.List'\nhttps://pmd.github.io/pmd-5.6.1/pmd-java/rules/java/imports.html#UnusedImports","created_at":"2018-02-09T04:07:46Z","updated_at":"2018-02-09T04:07:46Z","html_url":"https://github.com/framgia/iWeather_02/pull/5#discussion_r167136200","pull_request_url":"https://api.github.com/repos/framgia/iWeather_02/pulls/5","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/framgia/iWeather_02/pulls/comments/167136200"},"html":{"href":"https://github.com/framgia/iWeather_02/pull/5#discussion_r167136200"},"pull_request":{"href":"https://api.github.com/repos/framgia/iWeather_02/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/iWeather_02/pulls/5","id":167313849,"html_url":"https://github.com/framgia/iWeather_02/pull/5","diff_url":"https://github.com/framgia/iWeather_02/pull/5.diff","patch_url":"https://github.com/framgia/iWeather_02/pull/5.patch","issue_url":"https://api.github.com/repos/framgia/iWeather_02/issues/5","number":5,"state":"open","locked":false,"title":"setting fragment","user":{"login":"TRONGTAI1801","id":31733095,"avatar_url":"https://avatars3.githubusercontent.com/u/31733095?v=4","gravatar_id":"","url":"https://api.github.com/users/TRONGTAI1801","html_url":"https://github.com/TRONGTAI1801","followers_url":"https://api.github.com/users/TRONGTAI1801/followers","following_url":"https://api.github.com/users/TRONGTAI1801/following{/other_user}","gists_url":"https://api.github.com/users/TRONGTAI1801/gists{/gist_id}","starred_url":"https://api.github.com/users/TRONGTAI1801/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TRONGTAI1801/subscriptions","organizations_url":"https://api.github.com/users/TRONGTAI1801/orgs","repos_url":"https://api.github.com/users/TRONGTAI1801/repos","events_url":"https://api.github.com/users/TRONGTAI1801/events{/privacy}","received_events_url":"https://api.github.com/users/TRONGTAI1801/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-02-06T03:46:07Z","updated_at":"2018-02-09T04:07:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d7f07bc8e1496f9fbc031a5f7ef6d83a870ed87f","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"milestone":null,"commits_url":"https://api.github.com/repos/framgia/iWeather_02/pulls/5/commits","review_comments_url":"https://api.github.com/repos/framgia/iWeather_02/pulls/5/comments","review_comment_url":"https://api.github.com/repos/framgia/iWeather_02/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/iWeather_02/issues/5/comments","statuses_url":"https://api.github.com/repos/framgia/iWeather_02/statuses/111d828c9155474d55291f5c90853da8315877e9","head":{"label":"TRONGTAI1801:task_setting_fragment","ref":"task_setting_fragment","sha":"111d828c9155474d55291f5c90853da8315877e9","user":{"login":"TRONGTAI1801","id":31733095,"avatar_url":"https://avatars3.githubusercontent.com/u/31733095?v=4","gravatar_id":"","url":"https://api.github.com/users/TRONGTAI1801","html_url":"https://github.com/TRONGTAI1801","followers_url":"https://api.github.com/users/TRONGTAI1801/followers","following_url":"https://api.github.com/users/TRONGTAI1801/following{/other_user}","gists_url":"https://api.github.com/users/TRONGTAI1801/gists{/gist_id}","starred_url":"https://api.github.com/users/TRONGTAI1801/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TRONGTAI1801/subscriptions","organizations_url":"https://api.github.com/users/TRONGTAI1801/orgs","repos_url":"https://api.github.com/users/TRONGTAI1801/repos","events_url":"https://api.github.com/users/TRONGTAI1801/events{/privacy}","received_events_url":"https://api.github.com/users/TRONGTAI1801/received_events","type":"User","site_admin":false},"repo":{"id":118538046,"name":"iWeather_02","full_name":"TRONGTAI1801/iWeather_02","owner":{"login":"TRONGTAI1801","id":31733095,"avatar_url":"https://avatars3.githubusercontent.com/u/31733095?v=4","gravatar_id":"","url":"https://api.github.com/users/TRONGTAI1801","html_url":"https://github.com/TRONGTAI1801","followers_url":"https://api.github.com/users/TRONGTAI1801/followers","following_url":"https://api.github.com/users/TRONGTAI1801/following{/other_user}","gists_url":"https://api.github.com/users/TRONGTAI1801/gists{/gist_id}","starred_url":"https://api.github.com/users/TRONGTAI1801/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TRONGTAI1801/subscriptions","organizations_url":"https://api.github.com/users/TRONGTAI1801/orgs","repos_url":"https://api.github.com/users/TRONGTAI1801/repos","events_url":"https://api.github.com/users/TRONGTAI1801/events{/privacy}","received_events_url":"https://api.github.com/users/TRONGTAI1801/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/TRONGTAI1801/iWeather_02","description":null,"fork":true,"url":"https://api.github.com/repos/TRONGTAI1801/iWeather_02","forks_url":"https://api.github.com/repos/TRONGTAI1801/iWeather_02/forks","keys_url":"https://api.github.com/repos/TRONGTAI1801/iWeather_02/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TRONGTAI1801/iWeather_02/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TRONGTAI1801/iWeather_02/teams","hooks_url":"https://api.github.com/repos/TRONGTAI1801/iWeather_02/hooks","issue_events_url":"https://api.github.com/repos/TRONGTAI1801/iWeather_02/issues/events{/number}","events_url":"https://api.github.com/repos/TRONGTAI1801/iWeather_02/events","assignees_url":"https://api.github.com/repos/TRONGTAI1801/iWeather_02/assignees{/user}","branches_url":"https://api.github.com/repos/TRONGTAI1801/iWeather_02/branches{/branch}","tags_url":"https://api.github.com/repos/TRONGTAI1801/iWeather_02/tags","blobs_url":"https://api.github.com/repos/TRONGTAI1801/iWeather_02/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TRONGTAI1801/iWeather_02/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TRONGTAI1801/iWeather_02/git/refs{/sha}","trees_url":"https://api.github.com/repos/TRONGTAI1801/iWeather_02/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TRONGTAI1801/iWeather_02/statuses/{sha}","languages_url":"https://api.github.com/repos/TRONGTAI1801/iWeather_02/languages","stargazers_url":"https://api.github.com/repos/TRONGTAI1801/iWeather_02/stargazers","contributors_url":"https://api.github.com/repos/TRONGTAI1801/iWeather_02/contributors","subscribers_url":"https://api.github.com/repos/TRONGTAI1801/iWeather_02/subscribers","subscription_url":"https://api.github.com/repos/TRONGTAI1801/iWeather_02/subscription","commits_url":"https://api.github.com/repos/TRONGTAI1801/iWeather_02/commits{/sha}","git_commits_url":"https://api.github.com/repos/TRONGTAI1801/iWeather_02/git/commits{/sha}","comments_url":"https://api.github.com/repos/TRONGTAI1801/iWeather_02/comments{/number}","issue_comment_url":"https://api.github.com/repos/TRONGTAI1801/iWeather_02/issues/comments{/number}","contents_url":"https://api.github.com/repos/TRONGTAI1801/iWeather_02/contents/{+path}","compare_url":"https://api.github.com/repos/TRONGTAI1801/iWeather_02/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TRONGTAI1801/iWeather_02/merges","archive_url":"https://api.github.com/repos/TRONGTAI1801/iWeather_02/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TRONGTAI1801/iWeather_02/downloads","issues_url":"https://api.github.com/repos/TRONGTAI1801/iWeather_02/issues{/number}","pulls_url":"https://api.github.com/repos/TRONGTAI1801/iWeather_02/pulls{/number}","milestones_url":"https://api.github.com/repos/TRONGTAI1801/iWeather_02/milestones{/number}","notifications_url":"https://api.github.com/repos/TRONGTAI1801/iWeather_02/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TRONGTAI1801/iWeather_02/labels{/name}","releases_url":"https://api.github.com/repos/TRONGTAI1801/iWeather_02/releases{/id}","deployments_url":"https://api.github.com/repos/TRONGTAI1801/iWeather_02/deployments","created_at":"2018-01-23T01:13:02Z","updated_at":"2018-01-23T01:13:04Z","pushed_at":"2018-02-09T03:56:09Z","git_url":"git://github.com/TRONGTAI1801/iWeather_02.git","ssh_url":"git@github.com:TRONGTAI1801/iWeather_02.git","clone_url":"https://github.com/TRONGTAI1801/iWeather_02.git","svn_url":"https://github.com/TRONGTAI1801/iWeather_02","homepage":null,"size":164,"stargazers_count":0,"watchers_count":0,"language":"Shell","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"framgia:develop","ref":"develop","sha":"06734d87994892dfe7fb2aa3b1121c5dbe759cb3","user":{"login":"framgia","id":2322183,"avatar_url":"https://avatars3.githubusercontent.com/u/2322183?v=4","gravatar_id":"","url":"https://api.github.com/users/framgia","html_url":"https://github.com/framgia","followers_url":"https://api.github.com/users/framgia/followers","following_url":"https://api.github.com/users/framgia/following{/other_user}","gists_url":"https://api.github.com/users/framgia/gists{/gist_id}","starred_url":"https://api.github.com/users/framgia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/framgia/subscriptions","organizations_url":"https://api.github.com/users/framgia/orgs","repos_url":"https://api.github.com/users/framgia/repos","events_url":"https://api.github.com/users/framgia/events{/privacy}","received_events_url":"https://api.github.com/users/framgia/received_events","type":"Organization","site_admin":false},"repo":{"id":118388791,"name":"iWeather_02","full_name":"framgia/iWeather_02","owner":{"login":"framgia","id":2322183,"avatar_url":"https://avatars3.githubusercontent.com/u/2322183?v=4","gravatar_id":"","url":"https://api.github.com/users/framgia","html_url":"https://github.com/framgia","followers_url":"https://api.github.com/users/framgia/followers","following_url":"https://api.github.com/users/framgia/following{/other_user}","gists_url":"https://api.github.com/users/framgia/gists{/gist_id}","starred_url":"https://api.github.com/users/framgia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/framgia/subscriptions","organizations_url":"https://api.github.com/users/framgia/orgs","repos_url":"https://api.github.com/users/framgia/repos","events_url":"https://api.github.com/users/framgia/events{/privacy}","received_events_url":"https://api.github.com/users/framgia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/framgia/iWeather_02","description":null,"fork":false,"url":"https://api.github.com/repos/framgia/iWeather_02","forks_url":"https://api.github.com/repos/framgia/iWeather_02/forks","keys_url":"https://api.github.com/repos/framgia/iWeather_02/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/iWeather_02/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/iWeather_02/teams","hooks_url":"https://api.github.com/repos/framgia/iWeather_02/hooks","issue_events_url":"https://api.github.com/repos/framgia/iWeather_02/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/iWeather_02/events","assignees_url":"https://api.github.com/repos/framgia/iWeather_02/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/iWeather_02/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/iWeather_02/tags","blobs_url":"https://api.github.com/repos/framgia/iWeather_02/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/iWeather_02/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/iWeather_02/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/iWeather_02/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/iWeather_02/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/iWeather_02/languages","stargazers_url":"https://api.github.com/repos/framgia/iWeather_02/stargazers","contributors_url":"https://api.github.com/repos/framgia/iWeather_02/contributors","subscribers_url":"https://api.github.com/repos/framgia/iWeather_02/subscribers","subscription_url":"https://api.github.com/repos/framgia/iWeather_02/subscription","commits_url":"https://api.github.com/repos/framgia/iWeather_02/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/iWeather_02/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/iWeather_02/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/iWeather_02/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/iWeather_02/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/iWeather_02/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/iWeather_02/merges","archive_url":"https://api.github.com/repos/framgia/iWeather_02/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/iWeather_02/downloads","issues_url":"https://api.github.com/repos/framgia/iWeather_02/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/iWeather_02/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/iWeather_02/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/iWeather_02/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/iWeather_02/labels{/name}","releases_url":"https://api.github.com/repos/framgia/iWeather_02/releases{/id}","deployments_url":"https://api.github.com/repos/framgia/iWeather_02/deployments","created_at":"2018-01-22T01:03:46Z","updated_at":"2018-01-30T00:44:08Z","pushed_at":"2018-02-09T03:56:13Z","git_url":"git://github.com/framgia/iWeather_02.git","ssh_url":"git@github.com:framgia/iWeather_02.git","clone_url":"https://github.com/framgia/iWeather_02.git","svn_url":"https://github.com/framgia/iWeather_02","homepage":null,"size":144,"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":1,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":1,"open_issues":1,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/iWeather_02/pulls/5"},"html":{"href":"https://github.com/framgia/iWeather_02/pull/5"},"issue":{"href":"https://api.github.com/repos/framgia/iWeather_02/issues/5"},"comments":{"href":"https://api.github.com/repos/framgia/iWeather_02/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/iWeather_02/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/iWeather_02/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/iWeather_02/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/iWeather_02/statuses/111d828c9155474d55291f5c90853da8315877e9"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"le-quang-dao"}}