{"action":"created","comment":{"url":"https://api.github.com/repos/genkimarshall/bigredapp-android/pulls/comments/27087665","id":27087665,"diff_hunk":"@@ -0,0 +1,184 @@\n+package is.genki.bigredapp.android;\n+\n+import android.app.AlertDialog;\n+import android.support.v7.app.ActionBarActivity;\n+import android.support.v7.app.ActionBar;\n+import android.support.v4.app.Fragment;\n+import android.os.Bundle;\n+import android.support.v7.widget.LinearLayoutManager;\n+import android.support.v7.widget.RecyclerView;\n+import android.view.LayoutInflater;\n+import android.view.Menu;\n+import android.view.MenuItem;\n+import android.view.View;\n+import android.view.ViewGroup;\n+import android.os.Build;\n+import android.widget.TextView;\n+import android.widget.Toast;\n+\n+import org.json.JSONArray;\n+import org.json.JSONException;\n+import org.json.JSONObject;\n+\n+import java.util.ArrayList;\n+import java.util.List;\n+\n+\n+public class DiningLocationActivity extends ActionBarActivity {\n+\n+    public static final String KEY_DINING_HALL = \"DiningLocationActivity.DINING_HALL\";\n+    public static final String KEY_DINING_HALL_URL = \"DiningLocationActivity.DINING_HALL_URL\";\n+\n+    @Override\n+    protected void onCreate(Bundle savedInstanceState) {\n+        super.onCreate(savedInstanceState);\n+        setContentView(R.layout.activity_dining_location);\n+        final PlaceholderFragment fragment = new PlaceholderFragment();\n+        if (savedInstanceState == null) {\n+            getSupportFragmentManager().beginTransaction()\n+                    .add(R.id.container, fragment)\n+                    .commit();\n+        }\n+\n+        Bundle extras = getIntent().getExtras();\n+        if (extras != null) {\n+            final String diningHall = extras.getString(KEY_DINING_HALL);\n+            String url = extras.getString(KEY_DINING_HALL_URL);\n+\n+            setTitle(diningHall);\n+\n+            if (GetRequest.isConnected(this)) {","path":"app/src/main/java/is/genki/bigredapp/android/DiningLocationActivity.java","position":50,"original_position":50,"commit_id":"1402e3690f72994c3e1e556b3747e07fa9d18646","original_commit_id":"1402e3690f72994c3e1e556b3747e07fa9d18646","user":{"login":"lidavidm","id":327919,"avatar_url":"https://avatars.githubusercontent.com/u/327919?v=3","gravatar_id":"","url":"https://api.github.com/users/lidavidm","html_url":"https://github.com/lidavidm","followers_url":"https://api.github.com/users/lidavidm/followers","following_url":"https://api.github.com/users/lidavidm/following{/other_user}","gists_url":"https://api.github.com/users/lidavidm/gists{/gist_id}","starred_url":"https://api.github.com/users/lidavidm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lidavidm/subscriptions","organizations_url":"https://api.github.com/users/lidavidm/orgs","repos_url":"https://api.github.com/users/lidavidm/repos","events_url":"https://api.github.com/users/lidavidm/events{/privacy}","received_events_url":"https://api.github.com/users/lidavidm/received_events","type":"User","site_admin":false},"body":"I don't know if it matters that we wait until the activity is created to fire off the HTTP request.","created_at":"2015-03-25T00:54:12Z","updated_at":"2015-03-25T00:54:12Z","html_url":"https://github.com/genkimarshall/bigredapp-android/pull/8#discussion_r27087665","pull_request_url":"https://api.github.com/repos/genkimarshall/bigredapp-android/pulls/8","_links":{"self":{"href":"https://api.github.com/repos/genkimarshall/bigredapp-android/pulls/comments/27087665"},"html":{"href":"https://github.com/genkimarshall/bigredapp-android/pull/8#discussion_r27087665"},"pull_request":{"href":"https://api.github.com/repos/genkimarshall/bigredapp-android/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/genkimarshall/bigredapp-android/pulls/8","id":31884499,"html_url":"https://github.com/genkimarshall/bigredapp-android/pull/8","diff_url":"https://github.com/genkimarshall/bigredapp-android/pull/8.diff","patch_url":"https://github.com/genkimarshall/bigredapp-android/pull/8.patch","issue_url":"https://api.github.com/repos/genkimarshall/bigredapp-android/issues/8","number":8,"state":"open","locked":false,"title":"Move menus into a separate activity","user":{"login":"lidavidm","id":327919,"avatar_url":"https://avatars.githubusercontent.com/u/327919?v=3","gravatar_id":"","url":"https://api.github.com/users/lidavidm","html_url":"https://github.com/lidavidm","followers_url":"https://api.github.com/users/lidavidm/followers","following_url":"https://api.github.com/users/lidavidm/following{/other_user}","gists_url":"https://api.github.com/users/lidavidm/gists{/gist_id}","starred_url":"https://api.github.com/users/lidavidm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lidavidm/subscriptions","organizations_url":"https://api.github.com/users/lidavidm/orgs","repos_url":"https://api.github.com/users/lidavidm/repos","events_url":"https://api.github.com/users/lidavidm/events{/privacy}","received_events_url":"https://api.github.com/users/lidavidm/received_events","type":"User","site_admin":false},"body":"This is a work-in-progress; best not to merge until we can clean up code style/etc.\r\n\r\nTODO\r\n\r\n- [ ] Better styling\r\n- [ ] Implement that slick transition\r\n- [ ] Figure out why app crashes when you rotate the screen when viewing the menu\r\n- [ ] Color the navbar/statusbar as well\r\n\r\nIDEAS\r\n\r\n- [ ] Show the menu for the upcoming meal (i.e. don't show breakfast at this time; show a card at the bottom for tomorrow's breakfast)\r\n\r\n![device-2015-03-24-204416](https://cloud.githubusercontent.com/assets/327919/6816258/05d981c0-d267-11e4-9392-429f19504ad2.png)\r\n![device-2015-03-24-204432](https://cloud.githubusercontent.com/assets/327919/6816259/05dadf70-d267-11e4-8718-28cbdcc37944.png)\r\n\r\n","created_at":"2015-03-25T00:47:47Z","updated_at":"2015-03-25T00:54:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4b70b59046a4a24c3fe921a66f907a518c07cdd3","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/genkimarshall/bigredapp-android/pulls/8/commits","review_comments_url":"https://api.github.com/repos/genkimarshall/bigredapp-android/pulls/8/comments","review_comment_url":"https://api.github.com/repos/genkimarshall/bigredapp-android/pulls/comments{/number}","comments_url":"https://api.github.com/repos/genkimarshall/bigredapp-android/issues/8/comments","statuses_url":"https://api.github.com/repos/genkimarshall/bigredapp-android/statuses/1402e3690f72994c3e1e556b3747e07fa9d18646","head":{"label":"lidavidm:diningactivity","ref":"diningactivity","sha":"1402e3690f72994c3e1e556b3747e07fa9d18646","user":{"login":"lidavidm","id":327919,"avatar_url":"https://avatars.githubusercontent.com/u/327919?v=3","gravatar_id":"","url":"https://api.github.com/users/lidavidm","html_url":"https://github.com/lidavidm","followers_url":"https://api.github.com/users/lidavidm/followers","following_url":"https://api.github.com/users/lidavidm/following{/other_user}","gists_url":"https://api.github.com/users/lidavidm/gists{/gist_id}","starred_url":"https://api.github.com/users/lidavidm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lidavidm/subscriptions","organizations_url":"https://api.github.com/users/lidavidm/orgs","repos_url":"https://api.github.com/users/lidavidm/repos","events_url":"https://api.github.com/users/lidavidm/events{/privacy}","received_events_url":"https://api.github.com/users/lidavidm/received_events","type":"User","site_admin":false},"repo":{"id":32771501,"name":"bigredapp-android","full_name":"lidavidm/bigredapp-android","owner":{"login":"lidavidm","id":327919,"avatar_url":"https://avatars.githubusercontent.com/u/327919?v=3","gravatar_id":"","url":"https://api.github.com/users/lidavidm","html_url":"https://github.com/lidavidm","followers_url":"https://api.github.com/users/lidavidm/followers","following_url":"https://api.github.com/users/lidavidm/following{/other_user}","gists_url":"https://api.github.com/users/lidavidm/gists{/gist_id}","starred_url":"https://api.github.com/users/lidavidm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lidavidm/subscriptions","organizations_url":"https://api.github.com/users/lidavidm/orgs","repos_url":"https://api.github.com/users/lidavidm/repos","events_url":"https://api.github.com/users/lidavidm/events{/privacy}","received_events_url":"https://api.github.com/users/lidavidm/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lidavidm/bigredapp-android","description":"Android app for Cornell University dining halls (at least, just that at the moment)","fork":true,"url":"https://api.github.com/repos/lidavidm/bigredapp-android","forks_url":"https://api.github.com/repos/lidavidm/bigredapp-android/forks","keys_url":"https://api.github.com/repos/lidavidm/bigredapp-android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lidavidm/bigredapp-android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lidavidm/bigredapp-android/teams","hooks_url":"https://api.github.com/repos/lidavidm/bigredapp-android/hooks","issue_events_url":"https://api.github.com/repos/lidavidm/bigredapp-android/issues/events{/number}","events_url":"https://api.github.com/repos/lidavidm/bigredapp-android/events","assignees_url":"https://api.github.com/repos/lidavidm/bigredapp-android/assignees{/user}","branches_url":"https://api.github.com/repos/lidavidm/bigredapp-android/branches{/branch}","tags_url":"https://api.github.com/repos/lidavidm/bigredapp-android/tags","blobs_url":"https://api.github.com/repos/lidavidm/bigredapp-android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lidavidm/bigredapp-android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lidavidm/bigredapp-android/git/refs{/sha}","trees_url":"https://api.github.com/repos/lidavidm/bigredapp-android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lidavidm/bigredapp-android/statuses/{sha}","languages_url":"https://api.github.com/repos/lidavidm/bigredapp-android/languages","stargazers_url":"https://api.github.com/repos/lidavidm/bigredapp-android/stargazers","contributors_url":"https://api.github.com/repos/lidavidm/bigredapp-android/contributors","subscribers_url":"https://api.github.com/repos/lidavidm/bigredapp-android/subscribers","subscription_url":"https://api.github.com/repos/lidavidm/bigredapp-android/subscription","commits_url":"https://api.github.com/repos/lidavidm/bigredapp-android/commits{/sha}","git_commits_url":"https://api.github.com/repos/lidavidm/bigredapp-android/git/commits{/sha}","comments_url":"https://api.github.com/repos/lidavidm/bigredapp-android/comments{/number}","issue_comment_url":"https://api.github.com/repos/lidavidm/bigredapp-android/issues/comments{/number}","contents_url":"https://api.github.com/repos/lidavidm/bigredapp-android/contents/{+path}","compare_url":"https://api.github.com/repos/lidavidm/bigredapp-android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lidavidm/bigredapp-android/merges","archive_url":"https://api.github.com/repos/lidavidm/bigredapp-android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lidavidm/bigredapp-android/downloads","issues_url":"https://api.github.com/repos/lidavidm/bigredapp-android/issues{/number}","pulls_url":"https://api.github.com/repos/lidavidm/bigredapp-android/pulls{/number}","milestones_url":"https://api.github.com/repos/lidavidm/bigredapp-android/milestones{/number}","notifications_url":"https://api.github.com/repos/lidavidm/bigredapp-android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lidavidm/bigredapp-android/labels{/name}","releases_url":"https://api.github.com/repos/lidavidm/bigredapp-android/releases{/id}","created_at":"2015-03-24T02:30:57Z","updated_at":"2015-03-24T02:30:57Z","pushed_at":"2015-03-25T00:45:57Z","git_url":"git://github.com/lidavidm/bigredapp-android.git","ssh_url":"git@github.com:lidavidm/bigredapp-android.git","clone_url":"https://github.com/lidavidm/bigredapp-android.git","svn_url":"https://github.com/lidavidm/bigredapp-android","homepage":"","size":0,"stargazers_count":0,"watchers_count":0,"language":"Java","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":"genkimarshall:master","ref":"master","sha":"88a5fa4debc4ee47238d312ffe457c6cecf61903","user":{"login":"genkimarshall","id":4513869,"avatar_url":"https://avatars.githubusercontent.com/u/4513869?v=3","gravatar_id":"","url":"https://api.github.com/users/genkimarshall","html_url":"https://github.com/genkimarshall","followers_url":"https://api.github.com/users/genkimarshall/followers","following_url":"https://api.github.com/users/genkimarshall/following{/other_user}","gists_url":"https://api.github.com/users/genkimarshall/gists{/gist_id}","starred_url":"https://api.github.com/users/genkimarshall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/genkimarshall/subscriptions","organizations_url":"https://api.github.com/users/genkimarshall/orgs","repos_url":"https://api.github.com/users/genkimarshall/repos","events_url":"https://api.github.com/users/genkimarshall/events{/privacy}","received_events_url":"https://api.github.com/users/genkimarshall/received_events","type":"User","site_admin":false},"repo":{"id":32644403,"name":"bigredapp-android","full_name":"genkimarshall/bigredapp-android","owner":{"login":"genkimarshall","id":4513869,"avatar_url":"https://avatars.githubusercontent.com/u/4513869?v=3","gravatar_id":"","url":"https://api.github.com/users/genkimarshall","html_url":"https://github.com/genkimarshall","followers_url":"https://api.github.com/users/genkimarshall/followers","following_url":"https://api.github.com/users/genkimarshall/following{/other_user}","gists_url":"https://api.github.com/users/genkimarshall/gists{/gist_id}","starred_url":"https://api.github.com/users/genkimarshall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/genkimarshall/subscriptions","organizations_url":"https://api.github.com/users/genkimarshall/orgs","repos_url":"https://api.github.com/users/genkimarshall/repos","events_url":"https://api.github.com/users/genkimarshall/events{/privacy}","received_events_url":"https://api.github.com/users/genkimarshall/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/genkimarshall/bigredapp-android","description":"Android app for Cornell University dining halls (at least, just that at the moment)","fork":false,"url":"https://api.github.com/repos/genkimarshall/bigredapp-android","forks_url":"https://api.github.com/repos/genkimarshall/bigredapp-android/forks","keys_url":"https://api.github.com/repos/genkimarshall/bigredapp-android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/genkimarshall/bigredapp-android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/genkimarshall/bigredapp-android/teams","hooks_url":"https://api.github.com/repos/genkimarshall/bigredapp-android/hooks","issue_events_url":"https://api.github.com/repos/genkimarshall/bigredapp-android/issues/events{/number}","events_url":"https://api.github.com/repos/genkimarshall/bigredapp-android/events","assignees_url":"https://api.github.com/repos/genkimarshall/bigredapp-android/assignees{/user}","branches_url":"https://api.github.com/repos/genkimarshall/bigredapp-android/branches{/branch}","tags_url":"https://api.github.com/repos/genkimarshall/bigredapp-android/tags","blobs_url":"https://api.github.com/repos/genkimarshall/bigredapp-android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/genkimarshall/bigredapp-android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/genkimarshall/bigredapp-android/git/refs{/sha}","trees_url":"https://api.github.com/repos/genkimarshall/bigredapp-android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/genkimarshall/bigredapp-android/statuses/{sha}","languages_url":"https://api.github.com/repos/genkimarshall/bigredapp-android/languages","stargazers_url":"https://api.github.com/repos/genkimarshall/bigredapp-android/stargazers","contributors_url":"https://api.github.com/repos/genkimarshall/bigredapp-android/contributors","subscribers_url":"https://api.github.com/repos/genkimarshall/bigredapp-android/subscribers","subscription_url":"https://api.github.com/repos/genkimarshall/bigredapp-android/subscription","commits_url":"https://api.github.com/repos/genkimarshall/bigredapp-android/commits{/sha}","git_commits_url":"https://api.github.com/repos/genkimarshall/bigredapp-android/git/commits{/sha}","comments_url":"https://api.github.com/repos/genkimarshall/bigredapp-android/comments{/number}","issue_comment_url":"https://api.github.com/repos/genkimarshall/bigredapp-android/issues/comments{/number}","contents_url":"https://api.github.com/repos/genkimarshall/bigredapp-android/contents/{+path}","compare_url":"https://api.github.com/repos/genkimarshall/bigredapp-android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/genkimarshall/bigredapp-android/merges","archive_url":"https://api.github.com/repos/genkimarshall/bigredapp-android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/genkimarshall/bigredapp-android/downloads","issues_url":"https://api.github.com/repos/genkimarshall/bigredapp-android/issues{/number}","pulls_url":"https://api.github.com/repos/genkimarshall/bigredapp-android/pulls{/number}","milestones_url":"https://api.github.com/repos/genkimarshall/bigredapp-android/milestones{/number}","notifications_url":"https://api.github.com/repos/genkimarshall/bigredapp-android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/genkimarshall/bigredapp-android/labels{/name}","releases_url":"https://api.github.com/repos/genkimarshall/bigredapp-android/releases{/id}","created_at":"2015-03-21T18:26:26Z","updated_at":"2015-03-24T22:11:34Z","pushed_at":"2015-03-25T00:47:47Z","git_url":"git://github.com/genkimarshall/bigredapp-android.git","ssh_url":"git@github.com:genkimarshall/bigredapp-android.git","clone_url":"https://github.com/genkimarshall/bigredapp-android.git","svn_url":"https://github.com/genkimarshall/bigredapp-android","homepage":"","size":0,"stargazers_count":4,"watchers_count":4,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":5,"forks":2,"open_issues":5,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/genkimarshall/bigredapp-android/pulls/8"},"html":{"href":"https://github.com/genkimarshall/bigredapp-android/pull/8"},"issue":{"href":"https://api.github.com/repos/genkimarshall/bigredapp-android/issues/8"},"comments":{"href":"https://api.github.com/repos/genkimarshall/bigredapp-android/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/genkimarshall/bigredapp-android/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/genkimarshall/bigredapp-android/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/genkimarshall/bigredapp-android/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/genkimarshall/bigredapp-android/statuses/1402e3690f72994c3e1e556b3747e07fa9d18646"}}}}