{"action":"created","comment":{"url":"https://api.github.com/repos/framgia/hrm_6/pulls/comments/56109651","id":56109651,"diff_hunk":"@@ -0,0 +1,38 @@\n+package com.framgia.nguyen.hrm_6;\n+\n+import android.app.ActionBar;\n+import android.app.Activity;\n+import android.content.res.Configuration;\n+import android.os.Bundle;\n+import android.os.PersistableBundle;\n+import android.support.v7.app.AppCompatActivity;\n+import android.support.v7.widget.Toolbar;\n+import android.view.View;\n+\n+import com.framgia.nguyen.hrm_6.fragments.DepartmentFragment;\n+\n+/**\n+ * Created by nguyen on 3/3/16.\n+ */\n+public class DepartmensActivity extends AppCompatActivity {\n+\n+    @Override\n+    public void onCreate(Bundle savedInstanceState, PersistableBundle persistentState) {\n+        super.onCreate(savedInstanceState, persistentState);\n+        Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);\n+        setSupportActionBar(toolbar);\n+        getSupportActionBar().setDisplayHomeAsUpEnabled(true);\n+        getSupportActionBar().setDisplayShowHomeEnabled(true);\n+        \n+        if (getResources().getConfiguration().orientation == Configuration.ORIENTATION_LANDSCAPE) {\n+            finish();\n+            return;\n+        }\n+        if (savedInstanceState == null) {\n+            DepartmentFragment departmentFragment = new DepartmentFragment();\n+            departmentFragment.setArguments(getIntent().getExtras());\n+            getFragmentManager().beginTransaction().add(android.R.id.content, departmentFragment).commit();\n+","path":"app/src/main/java/com/framgia/nguyen/hrm_6/DepartmensActivity.java","position":35,"original_position":35,"commit_id":"1a69ee35ed8c59306fa25584042b286560e6196f","original_commit_id":"1a69ee35ed8c59306fa25584042b286560e6196f","user":{"login":"trungkienvu85","id":2076223,"avatar_url":"https://avatars.githubusercontent.com/u/2076223?v=3","gravatar_id":"","url":"https://api.github.com/users/trungkienvu85","html_url":"https://github.com/trungkienvu85","followers_url":"https://api.github.com/users/trungkienvu85/followers","following_url":"https://api.github.com/users/trungkienvu85/following{/other_user}","gists_url":"https://api.github.com/users/trungkienvu85/gists{/gist_id}","starred_url":"https://api.github.com/users/trungkienvu85/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trungkienvu85/subscriptions","organizations_url":"https://api.github.com/users/trungkienvu85/orgs","repos_url":"https://api.github.com/users/trungkienvu85/repos","events_url":"https://api.github.com/users/trungkienvu85/events{/privacy}","received_events_url":"https://api.github.com/users/trungkienvu85/received_events","type":"User","site_admin":false},"body":"blank line!","created_at":"2016-03-15T03:04:23Z","updated_at":"2016-03-15T03:04:23Z","html_url":"https://github.com/framgia/hrm_6/pull/7#discussion_r56109651","pull_request_url":"https://api.github.com/repos/framgia/hrm_6/pulls/7","_links":{"self":{"href":"https://api.github.com/repos/framgia/hrm_6/pulls/comments/56109651"},"html":{"href":"https://github.com/framgia/hrm_6/pull/7#discussion_r56109651"},"pull_request":{"href":"https://api.github.com/repos/framgia/hrm_6/pulls/7"}}},"pull_request":{"url":"https://api.github.com/repos/framgia/hrm_6/pulls/7","id":62845235,"html_url":"https://github.com/framgia/hrm_6/pull/7","diff_url":"https://github.com/framgia/hrm_6/pull/7.diff","patch_url":"https://github.com/framgia/hrm_6/pull/7.patch","issue_url":"https://api.github.com/repos/framgia/hrm_6/issues/7","number":7,"state":"open","locked":false,"title":"Display department list","user":{"login":"binhthanhnguyen","id":12368804,"avatar_url":"https://avatars.githubusercontent.com/u/12368804?v=3","gravatar_id":"","url":"https://api.github.com/users/binhthanhnguyen","html_url":"https://github.com/binhthanhnguyen","followers_url":"https://api.github.com/users/binhthanhnguyen/followers","following_url":"https://api.github.com/users/binhthanhnguyen/following{/other_user}","gists_url":"https://api.github.com/users/binhthanhnguyen/gists{/gist_id}","starred_url":"https://api.github.com/users/binhthanhnguyen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/binhthanhnguyen/subscriptions","organizations_url":"https://api.github.com/users/binhthanhnguyen/orgs","repos_url":"https://api.github.com/users/binhthanhnguyen/repos","events_url":"https://api.github.com/users/binhthanhnguyen/events{/privacy}","received_events_url":"https://api.github.com/users/binhthanhnguyen/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-03-15T02:04:09Z","updated_at":"2016-03-15T03:04:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c6267b573eb56e4dba476f611e13338a9062de58","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/framgia/hrm_6/pulls/7/commits","review_comments_url":"https://api.github.com/repos/framgia/hrm_6/pulls/7/comments","review_comment_url":"https://api.github.com/repos/framgia/hrm_6/pulls/comments{/number}","comments_url":"https://api.github.com/repos/framgia/hrm_6/issues/7/comments","statuses_url":"https://api.github.com/repos/framgia/hrm_6/statuses/1a69ee35ed8c59306fa25584042b286560e6196f","head":{"label":"binhthanhnguyen:display-department-list","ref":"display-department-list","sha":"1a69ee35ed8c59306fa25584042b286560e6196f","user":{"login":"binhthanhnguyen","id":12368804,"avatar_url":"https://avatars.githubusercontent.com/u/12368804?v=3","gravatar_id":"","url":"https://api.github.com/users/binhthanhnguyen","html_url":"https://github.com/binhthanhnguyen","followers_url":"https://api.github.com/users/binhthanhnguyen/followers","following_url":"https://api.github.com/users/binhthanhnguyen/following{/other_user}","gists_url":"https://api.github.com/users/binhthanhnguyen/gists{/gist_id}","starred_url":"https://api.github.com/users/binhthanhnguyen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/binhthanhnguyen/subscriptions","organizations_url":"https://api.github.com/users/binhthanhnguyen/orgs","repos_url":"https://api.github.com/users/binhthanhnguyen/repos","events_url":"https://api.github.com/users/binhthanhnguyen/events{/privacy}","received_events_url":"https://api.github.com/users/binhthanhnguyen/received_events","type":"User","site_admin":false},"repo":{"id":51990085,"name":"hrm_6","full_name":"binhthanhnguyen/hrm_6","owner":{"login":"binhthanhnguyen","id":12368804,"avatar_url":"https://avatars.githubusercontent.com/u/12368804?v=3","gravatar_id":"","url":"https://api.github.com/users/binhthanhnguyen","html_url":"https://github.com/binhthanhnguyen","followers_url":"https://api.github.com/users/binhthanhnguyen/followers","following_url":"https://api.github.com/users/binhthanhnguyen/following{/other_user}","gists_url":"https://api.github.com/users/binhthanhnguyen/gists{/gist_id}","starred_url":"https://api.github.com/users/binhthanhnguyen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/binhthanhnguyen/subscriptions","organizations_url":"https://api.github.com/users/binhthanhnguyen/orgs","repos_url":"https://api.github.com/users/binhthanhnguyen/repos","events_url":"https://api.github.com/users/binhthanhnguyen/events{/privacy}","received_events_url":"https://api.github.com/users/binhthanhnguyen/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/binhthanhnguyen/hrm_6","description":"Human Resource Management Application (training)","fork":true,"url":"https://api.github.com/repos/binhthanhnguyen/hrm_6","forks_url":"https://api.github.com/repos/binhthanhnguyen/hrm_6/forks","keys_url":"https://api.github.com/repos/binhthanhnguyen/hrm_6/keys{/key_id}","collaborators_url":"https://api.github.com/repos/binhthanhnguyen/hrm_6/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/binhthanhnguyen/hrm_6/teams","hooks_url":"https://api.github.com/repos/binhthanhnguyen/hrm_6/hooks","issue_events_url":"https://api.github.com/repos/binhthanhnguyen/hrm_6/issues/events{/number}","events_url":"https://api.github.com/repos/binhthanhnguyen/hrm_6/events","assignees_url":"https://api.github.com/repos/binhthanhnguyen/hrm_6/assignees{/user}","branches_url":"https://api.github.com/repos/binhthanhnguyen/hrm_6/branches{/branch}","tags_url":"https://api.github.com/repos/binhthanhnguyen/hrm_6/tags","blobs_url":"https://api.github.com/repos/binhthanhnguyen/hrm_6/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/binhthanhnguyen/hrm_6/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/binhthanhnguyen/hrm_6/git/refs{/sha}","trees_url":"https://api.github.com/repos/binhthanhnguyen/hrm_6/git/trees{/sha}","statuses_url":"https://api.github.com/repos/binhthanhnguyen/hrm_6/statuses/{sha}","languages_url":"https://api.github.com/repos/binhthanhnguyen/hrm_6/languages","stargazers_url":"https://api.github.com/repos/binhthanhnguyen/hrm_6/stargazers","contributors_url":"https://api.github.com/repos/binhthanhnguyen/hrm_6/contributors","subscribers_url":"https://api.github.com/repos/binhthanhnguyen/hrm_6/subscribers","subscription_url":"https://api.github.com/repos/binhthanhnguyen/hrm_6/subscription","commits_url":"https://api.github.com/repos/binhthanhnguyen/hrm_6/commits{/sha}","git_commits_url":"https://api.github.com/repos/binhthanhnguyen/hrm_6/git/commits{/sha}","comments_url":"https://api.github.com/repos/binhthanhnguyen/hrm_6/comments{/number}","issue_comment_url":"https://api.github.com/repos/binhthanhnguyen/hrm_6/issues/comments{/number}","contents_url":"https://api.github.com/repos/binhthanhnguyen/hrm_6/contents/{+path}","compare_url":"https://api.github.com/repos/binhthanhnguyen/hrm_6/compare/{base}...{head}","merges_url":"https://api.github.com/repos/binhthanhnguyen/hrm_6/merges","archive_url":"https://api.github.com/repos/binhthanhnguyen/hrm_6/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/binhthanhnguyen/hrm_6/downloads","issues_url":"https://api.github.com/repos/binhthanhnguyen/hrm_6/issues{/number}","pulls_url":"https://api.github.com/repos/binhthanhnguyen/hrm_6/pulls{/number}","milestones_url":"https://api.github.com/repos/binhthanhnguyen/hrm_6/milestones{/number}","notifications_url":"https://api.github.com/repos/binhthanhnguyen/hrm_6/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/binhthanhnguyen/hrm_6/labels{/name}","releases_url":"https://api.github.com/repos/binhthanhnguyen/hrm_6/releases{/id}","deployments_url":"https://api.github.com/repos/binhthanhnguyen/hrm_6/deployments","created_at":"2016-02-18T07:52:07Z","updated_at":"2016-02-18T07:47:54Z","pushed_at":"2016-03-15T02:05:08Z","git_url":"git://github.com/binhthanhnguyen/hrm_6.git","ssh_url":"git@github.com:binhthanhnguyen/hrm_6.git","clone_url":"https://github.com/binhthanhnguyen/hrm_6.git","svn_url":"https://github.com/binhthanhnguyen/hrm_6","homepage":null,"size":48,"stargazers_count":0,"watchers_count":0,"language":null,"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":"framgia:develop","ref":"develop","sha":"a158303376972111a98de979369f8778bd5f4960","user":{"login":"framgia","id":2322183,"avatar_url":"https://avatars.githubusercontent.com/u/2322183?v=3","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":51989845,"name":"hrm_6","full_name":"framgia/hrm_6","owner":{"login":"framgia","id":2322183,"avatar_url":"https://avatars.githubusercontent.com/u/2322183?v=3","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/hrm_6","description":"Human Resource Management Application (training)","fork":false,"url":"https://api.github.com/repos/framgia/hrm_6","forks_url":"https://api.github.com/repos/framgia/hrm_6/forks","keys_url":"https://api.github.com/repos/framgia/hrm_6/keys{/key_id}","collaborators_url":"https://api.github.com/repos/framgia/hrm_6/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/framgia/hrm_6/teams","hooks_url":"https://api.github.com/repos/framgia/hrm_6/hooks","issue_events_url":"https://api.github.com/repos/framgia/hrm_6/issues/events{/number}","events_url":"https://api.github.com/repos/framgia/hrm_6/events","assignees_url":"https://api.github.com/repos/framgia/hrm_6/assignees{/user}","branches_url":"https://api.github.com/repos/framgia/hrm_6/branches{/branch}","tags_url":"https://api.github.com/repos/framgia/hrm_6/tags","blobs_url":"https://api.github.com/repos/framgia/hrm_6/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/framgia/hrm_6/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/framgia/hrm_6/git/refs{/sha}","trees_url":"https://api.github.com/repos/framgia/hrm_6/git/trees{/sha}","statuses_url":"https://api.github.com/repos/framgia/hrm_6/statuses/{sha}","languages_url":"https://api.github.com/repos/framgia/hrm_6/languages","stargazers_url":"https://api.github.com/repos/framgia/hrm_6/stargazers","contributors_url":"https://api.github.com/repos/framgia/hrm_6/contributors","subscribers_url":"https://api.github.com/repos/framgia/hrm_6/subscribers","subscription_url":"https://api.github.com/repos/framgia/hrm_6/subscription","commits_url":"https://api.github.com/repos/framgia/hrm_6/commits{/sha}","git_commits_url":"https://api.github.com/repos/framgia/hrm_6/git/commits{/sha}","comments_url":"https://api.github.com/repos/framgia/hrm_6/comments{/number}","issue_comment_url":"https://api.github.com/repos/framgia/hrm_6/issues/comments{/number}","contents_url":"https://api.github.com/repos/framgia/hrm_6/contents/{+path}","compare_url":"https://api.github.com/repos/framgia/hrm_6/compare/{base}...{head}","merges_url":"https://api.github.com/repos/framgia/hrm_6/merges","archive_url":"https://api.github.com/repos/framgia/hrm_6/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/framgia/hrm_6/downloads","issues_url":"https://api.github.com/repos/framgia/hrm_6/issues{/number}","pulls_url":"https://api.github.com/repos/framgia/hrm_6/pulls{/number}","milestones_url":"https://api.github.com/repos/framgia/hrm_6/milestones{/number}","notifications_url":"https://api.github.com/repos/framgia/hrm_6/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/framgia/hrm_6/labels{/name}","releases_url":"https://api.github.com/repos/framgia/hrm_6/releases{/id}","deployments_url":"https://api.github.com/repos/framgia/hrm_6/deployments","created_at":"2016-02-18T07:47:54Z","updated_at":"2016-02-18T07:47:54Z","pushed_at":"2016-03-15T02:05:08Z","git_url":"git://github.com/framgia/hrm_6.git","ssh_url":"git@github.com:framgia/hrm_6.git","clone_url":"https://github.com/framgia/hrm_6.git","svn_url":"https://github.com/framgia/hrm_6","homepage":null,"size":186,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/framgia/hrm_6/pulls/7"},"html":{"href":"https://github.com/framgia/hrm_6/pull/7"},"issue":{"href":"https://api.github.com/repos/framgia/hrm_6/issues/7"},"comments":{"href":"https://api.github.com/repos/framgia/hrm_6/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/framgia/hrm_6/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/framgia/hrm_6/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/framgia/hrm_6/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/framgia/hrm_6/statuses/1a69ee35ed8c59306fa25584042b286560e6196f"}}}}