{"action":"created","comment":{"url":"https://api.github.com/repos/monsieur-x/android-app/pulls/comments/54118530","id":54118530,"diff_hunk":"@@ -1,15 +1,168 @@\n package io.monsieurx.app.android.view;\r\n \r\n-import android.support.v7.app.AppCompatActivity;\r\n+import android.app.Fragment;\r\n+import android.app.FragmentManager;\r\n+import android.content.res.Configuration;\r\n import android.os.Bundle;\r\n+import android.support.v4.widget.DrawerLayout;\r\n+import android.support.v7.app.ActionBarDrawerToggle;\r\n+import android.support.v7.app.AppCompatActivity;\r\n+import android.support.v7.widget.Toolbar;\r\n+import android.view.Menu;\r\n+import android.view.MenuItem;\r\n+import android.view.View;\r\n+import android.widget.AdapterView;\r\n+import android.widget.ArrayAdapter;\r\n+import android.widget.ListView;\r\n+import android.widget.RelativeLayout;\r\n+import android.widget.Toast;\r\n \r\n import io.monsieurx.app.android.R;\r\n \r\n public class MainActivity extends AppCompatActivity {\r\n \r\n+    private String[] _navListTitles;\r\n+    private DrawerLayout _drawerLayout;\r\n+    private RelativeLayout _drawerPane;\r\n+    private ListView _navList;\r\n+    private ActionBarDrawerToggle _drawerToggle;\r\n+\r\n     @Override\r\n     protected void onCreate(Bundle savedInstanceState) {\r\n         super.onCreate(savedInstanceState);\r\n         setContentView(R.layout.activity_main);\r\n+\r\n+        // load default fragment\r\n+        Fragment fragment = new MapFragment();\r\n+        FragmentManager fragmentManager = getFragmentManager();\r\n+        fragmentManager.beginTransaction()\r\n+                .replace(R.id.mainContent, fragment)\r\n+                .commit();\r\n+\r\n+        Toolbar myToolbar = (Toolbar) findViewById(R.id.actionBar);\r\n+        setSupportActionBar(myToolbar);\r\n+\r\n+        _navListTitles = getResources().getStringArray(R.array.nav_bar_titles);\r\n+        _drawerLayout = (DrawerLayout) findViewById(R.id.drawerLayout);\r\n+        _drawerPane = (RelativeLayout) findViewById(R.id.drawerPane);\r\n+        _navList = (ListView) findViewById(R.id.navList);\r\n+\r\n+        // Set the adapter for the list view\r\n+        _navList.setAdapter(new ArrayAdapter<String>(this,\r\n+                R.layout.drawer_list_item, _navListTitles));\r\n+        // Set the list's click listener\r","path":"app/src/main/java/io/monsieurx/app/android/view/MainActivity.java","position":54,"original_position":54,"commit_id":"09902cd3da317f28c0816292865111699adb7477","original_commit_id":"09902cd3da317f28c0816292865111699adb7477","user":{"login":"nstaeger","id":6928654,"avatar_url":"https://avatars.githubusercontent.com/u/6928654?v=3","gravatar_id":"","url":"https://api.github.com/users/nstaeger","html_url":"https://github.com/nstaeger","followers_url":"https://api.github.com/users/nstaeger/followers","following_url":"https://api.github.com/users/nstaeger/following{/other_user}","gists_url":"https://api.github.com/users/nstaeger/gists{/gist_id}","starred_url":"https://api.github.com/users/nstaeger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nstaeger/subscriptions","organizations_url":"https://api.github.com/users/nstaeger/orgs","repos_url":"https://api.github.com/users/nstaeger/repos","events_url":"https://api.github.com/users/nstaeger/events{/privacy}","received_events_url":"https://api.github.com/users/nstaeger/received_events","type":"User","site_admin":false},"body":"remove","created_at":"2016-02-25T16:08:34Z","updated_at":"2016-02-25T16:08:34Z","html_url":"https://github.com/monsieur-x/android-app/pull/29#discussion_r54118530","pull_request_url":"https://api.github.com/repos/monsieur-x/android-app/pulls/29","_links":{"self":{"href":"https://api.github.com/repos/monsieur-x/android-app/pulls/comments/54118530"},"html":{"href":"https://github.com/monsieur-x/android-app/pull/29#discussion_r54118530"},"pull_request":{"href":"https://api.github.com/repos/monsieur-x/android-app/pulls/29"}}},"pull_request":{"url":"https://api.github.com/repos/monsieur-x/android-app/pulls/29","id":60701699,"html_url":"https://github.com/monsieur-x/android-app/pull/29","diff_url":"https://github.com/monsieur-x/android-app/pull/29.diff","patch_url":"https://github.com/monsieur-x/android-app/pull/29.patch","issue_url":"https://api.github.com/repos/monsieur-x/android-app/issues/29","number":29,"state":"open","locked":false,"title":"feature base activity and map fragment","user":{"login":"ManekenT","id":5783049,"avatar_url":"https://avatars.githubusercontent.com/u/5783049?v=3","gravatar_id":"","url":"https://api.github.com/users/ManekenT","html_url":"https://github.com/ManekenT","followers_url":"https://api.github.com/users/ManekenT/followers","following_url":"https://api.github.com/users/ManekenT/following{/other_user}","gists_url":"https://api.github.com/users/ManekenT/gists{/gist_id}","starred_url":"https://api.github.com/users/ManekenT/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ManekenT/subscriptions","organizations_url":"https://api.github.com/users/ManekenT/orgs","repos_url":"https://api.github.com/users/ManekenT/repos","events_url":"https://api.github.com/users/ManekenT/events{/privacy}","received_events_url":"https://api.github.com/users/ManekenT/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-02-25T16:03:07Z","updated_at":"2016-02-25T16:08:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d8fec36baa29ac07c34a0ca41b2de6345b18518d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/monsieur-x/android-app/pulls/29/commits","review_comments_url":"https://api.github.com/repos/monsieur-x/android-app/pulls/29/comments","review_comment_url":"https://api.github.com/repos/monsieur-x/android-app/pulls/comments{/number}","comments_url":"https://api.github.com/repos/monsieur-x/android-app/issues/29/comments","statuses_url":"https://api.github.com/repos/monsieur-x/android-app/statuses/09902cd3da317f28c0816292865111699adb7477","head":{"label":"monsieur-x:feature-map","ref":"feature-map","sha":"09902cd3da317f28c0816292865111699adb7477","user":{"login":"monsieur-x","id":17407123,"avatar_url":"https://avatars.githubusercontent.com/u/17407123?v=3","gravatar_id":"","url":"https://api.github.com/users/monsieur-x","html_url":"https://github.com/monsieur-x","followers_url":"https://api.github.com/users/monsieur-x/followers","following_url":"https://api.github.com/users/monsieur-x/following{/other_user}","gists_url":"https://api.github.com/users/monsieur-x/gists{/gist_id}","starred_url":"https://api.github.com/users/monsieur-x/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/monsieur-x/subscriptions","organizations_url":"https://api.github.com/users/monsieur-x/orgs","repos_url":"https://api.github.com/users/monsieur-x/repos","events_url":"https://api.github.com/users/monsieur-x/events{/privacy}","received_events_url":"https://api.github.com/users/monsieur-x/received_events","type":"Organization","site_admin":false},"repo":{"id":52274133,"name":"android-app","full_name":"monsieur-x/android-app","owner":{"login":"monsieur-x","id":17407123,"avatar_url":"https://avatars.githubusercontent.com/u/17407123?v=3","gravatar_id":"","url":"https://api.github.com/users/monsieur-x","html_url":"https://github.com/monsieur-x","followers_url":"https://api.github.com/users/monsieur-x/followers","following_url":"https://api.github.com/users/monsieur-x/following{/other_user}","gists_url":"https://api.github.com/users/monsieur-x/gists{/gist_id}","starred_url":"https://api.github.com/users/monsieur-x/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/monsieur-x/subscriptions","organizations_url":"https://api.github.com/users/monsieur-x/orgs","repos_url":"https://api.github.com/users/monsieur-x/repos","events_url":"https://api.github.com/users/monsieur-x/events{/privacy}","received_events_url":"https://api.github.com/users/monsieur-x/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/monsieur-x/android-app","description":"","fork":false,"url":"https://api.github.com/repos/monsieur-x/android-app","forks_url":"https://api.github.com/repos/monsieur-x/android-app/forks","keys_url":"https://api.github.com/repos/monsieur-x/android-app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/monsieur-x/android-app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/monsieur-x/android-app/teams","hooks_url":"https://api.github.com/repos/monsieur-x/android-app/hooks","issue_events_url":"https://api.github.com/repos/monsieur-x/android-app/issues/events{/number}","events_url":"https://api.github.com/repos/monsieur-x/android-app/events","assignees_url":"https://api.github.com/repos/monsieur-x/android-app/assignees{/user}","branches_url":"https://api.github.com/repos/monsieur-x/android-app/branches{/branch}","tags_url":"https://api.github.com/repos/monsieur-x/android-app/tags","blobs_url":"https://api.github.com/repos/monsieur-x/android-app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/monsieur-x/android-app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/monsieur-x/android-app/git/refs{/sha}","trees_url":"https://api.github.com/repos/monsieur-x/android-app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/monsieur-x/android-app/statuses/{sha}","languages_url":"https://api.github.com/repos/monsieur-x/android-app/languages","stargazers_url":"https://api.github.com/repos/monsieur-x/android-app/stargazers","contributors_url":"https://api.github.com/repos/monsieur-x/android-app/contributors","subscribers_url":"https://api.github.com/repos/monsieur-x/android-app/subscribers","subscription_url":"https://api.github.com/repos/monsieur-x/android-app/subscription","commits_url":"https://api.github.com/repos/monsieur-x/android-app/commits{/sha}","git_commits_url":"https://api.github.com/repos/monsieur-x/android-app/git/commits{/sha}","comments_url":"https://api.github.com/repos/monsieur-x/android-app/comments{/number}","issue_comment_url":"https://api.github.com/repos/monsieur-x/android-app/issues/comments{/number}","contents_url":"https://api.github.com/repos/monsieur-x/android-app/contents/{+path}","compare_url":"https://api.github.com/repos/monsieur-x/android-app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/monsieur-x/android-app/merges","archive_url":"https://api.github.com/repos/monsieur-x/android-app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/monsieur-x/android-app/downloads","issues_url":"https://api.github.com/repos/monsieur-x/android-app/issues{/number}","pulls_url":"https://api.github.com/repos/monsieur-x/android-app/pulls{/number}","milestones_url":"https://api.github.com/repos/monsieur-x/android-app/milestones{/number}","notifications_url":"https://api.github.com/repos/monsieur-x/android-app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/monsieur-x/android-app/labels{/name}","releases_url":"https://api.github.com/repos/monsieur-x/android-app/releases{/id}","deployments_url":"https://api.github.com/repos/monsieur-x/android-app/deployments","created_at":"2016-02-22T13:09:44Z","updated_at":"2016-02-22T13:59:36Z","pushed_at":"2016-02-25T16:03:07Z","git_url":"git://github.com/monsieur-x/android-app.git","ssh_url":"git@github.com:monsieur-x/android-app.git","clone_url":"https://github.com/monsieur-x/android-app.git","svn_url":"https://github.com/monsieur-x/android-app","homepage":null,"size":145,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":19,"forks":0,"open_issues":19,"watchers":0,"default_branch":"develop"}},"base":{"label":"monsieur-x:develop","ref":"develop","sha":"38f347b7adb5982e039d14ad27cd3a6cfbb602a7","user":{"login":"monsieur-x","id":17407123,"avatar_url":"https://avatars.githubusercontent.com/u/17407123?v=3","gravatar_id":"","url":"https://api.github.com/users/monsieur-x","html_url":"https://github.com/monsieur-x","followers_url":"https://api.github.com/users/monsieur-x/followers","following_url":"https://api.github.com/users/monsieur-x/following{/other_user}","gists_url":"https://api.github.com/users/monsieur-x/gists{/gist_id}","starred_url":"https://api.github.com/users/monsieur-x/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/monsieur-x/subscriptions","organizations_url":"https://api.github.com/users/monsieur-x/orgs","repos_url":"https://api.github.com/users/monsieur-x/repos","events_url":"https://api.github.com/users/monsieur-x/events{/privacy}","received_events_url":"https://api.github.com/users/monsieur-x/received_events","type":"Organization","site_admin":false},"repo":{"id":52274133,"name":"android-app","full_name":"monsieur-x/android-app","owner":{"login":"monsieur-x","id":17407123,"avatar_url":"https://avatars.githubusercontent.com/u/17407123?v=3","gravatar_id":"","url":"https://api.github.com/users/monsieur-x","html_url":"https://github.com/monsieur-x","followers_url":"https://api.github.com/users/monsieur-x/followers","following_url":"https://api.github.com/users/monsieur-x/following{/other_user}","gists_url":"https://api.github.com/users/monsieur-x/gists{/gist_id}","starred_url":"https://api.github.com/users/monsieur-x/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/monsieur-x/subscriptions","organizations_url":"https://api.github.com/users/monsieur-x/orgs","repos_url":"https://api.github.com/users/monsieur-x/repos","events_url":"https://api.github.com/users/monsieur-x/events{/privacy}","received_events_url":"https://api.github.com/users/monsieur-x/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/monsieur-x/android-app","description":"","fork":false,"url":"https://api.github.com/repos/monsieur-x/android-app","forks_url":"https://api.github.com/repos/monsieur-x/android-app/forks","keys_url":"https://api.github.com/repos/monsieur-x/android-app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/monsieur-x/android-app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/monsieur-x/android-app/teams","hooks_url":"https://api.github.com/repos/monsieur-x/android-app/hooks","issue_events_url":"https://api.github.com/repos/monsieur-x/android-app/issues/events{/number}","events_url":"https://api.github.com/repos/monsieur-x/android-app/events","assignees_url":"https://api.github.com/repos/monsieur-x/android-app/assignees{/user}","branches_url":"https://api.github.com/repos/monsieur-x/android-app/branches{/branch}","tags_url":"https://api.github.com/repos/monsieur-x/android-app/tags","blobs_url":"https://api.github.com/repos/monsieur-x/android-app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/monsieur-x/android-app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/monsieur-x/android-app/git/refs{/sha}","trees_url":"https://api.github.com/repos/monsieur-x/android-app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/monsieur-x/android-app/statuses/{sha}","languages_url":"https://api.github.com/repos/monsieur-x/android-app/languages","stargazers_url":"https://api.github.com/repos/monsieur-x/android-app/stargazers","contributors_url":"https://api.github.com/repos/monsieur-x/android-app/contributors","subscribers_url":"https://api.github.com/repos/monsieur-x/android-app/subscribers","subscription_url":"https://api.github.com/repos/monsieur-x/android-app/subscription","commits_url":"https://api.github.com/repos/monsieur-x/android-app/commits{/sha}","git_commits_url":"https://api.github.com/repos/monsieur-x/android-app/git/commits{/sha}","comments_url":"https://api.github.com/repos/monsieur-x/android-app/comments{/number}","issue_comment_url":"https://api.github.com/repos/monsieur-x/android-app/issues/comments{/number}","contents_url":"https://api.github.com/repos/monsieur-x/android-app/contents/{+path}","compare_url":"https://api.github.com/repos/monsieur-x/android-app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/monsieur-x/android-app/merges","archive_url":"https://api.github.com/repos/monsieur-x/android-app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/monsieur-x/android-app/downloads","issues_url":"https://api.github.com/repos/monsieur-x/android-app/issues{/number}","pulls_url":"https://api.github.com/repos/monsieur-x/android-app/pulls{/number}","milestones_url":"https://api.github.com/repos/monsieur-x/android-app/milestones{/number}","notifications_url":"https://api.github.com/repos/monsieur-x/android-app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/monsieur-x/android-app/labels{/name}","releases_url":"https://api.github.com/repos/monsieur-x/android-app/releases{/id}","deployments_url":"https://api.github.com/repos/monsieur-x/android-app/deployments","created_at":"2016-02-22T13:09:44Z","updated_at":"2016-02-22T13:59:36Z","pushed_at":"2016-02-25T16:03:07Z","git_url":"git://github.com/monsieur-x/android-app.git","ssh_url":"git@github.com:monsieur-x/android-app.git","clone_url":"https://github.com/monsieur-x/android-app.git","svn_url":"https://github.com/monsieur-x/android-app","homepage":null,"size":145,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":19,"forks":0,"open_issues":19,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/monsieur-x/android-app/pulls/29"},"html":{"href":"https://github.com/monsieur-x/android-app/pull/29"},"issue":{"href":"https://api.github.com/repos/monsieur-x/android-app/issues/29"},"comments":{"href":"https://api.github.com/repos/monsieur-x/android-app/issues/29/comments"},"review_comments":{"href":"https://api.github.com/repos/monsieur-x/android-app/pulls/29/comments"},"review_comment":{"href":"https://api.github.com/repos/monsieur-x/android-app/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/monsieur-x/android-app/pulls/29/commits"},"statuses":{"href":"https://api.github.com/repos/monsieur-x/android-app/statuses/09902cd3da317f28c0816292865111699adb7477"}}}}