{"action":"created","comment":{"url":"https://api.github.com/repos/rusty2123/MileageLogger/pulls/comments/48690678","id":48690678,"diff_hunk":"@@ -50,24 +47,18 @@ protected void onCreate(Bundle savedInstanceState) {\n         addMileageButton = (Button) findViewById(R.id.addMileageButton);\n         newMileage = (EditText) findViewById(R.id.newMileage);\n \n+        // TODO: Read in saved mileage data\n+        mileageCounter = new MileageCounter();\n \n-        readMileage();\n-\n-        if(newWeek(DATE)) {\n-            weeklyMileage = 0;\n-            weeklyMileageS = \"0\";\n-        }\n \n-        totalMileage.setText(weeklyMileageS);\n+        updateCounterText();\n \n \n         addMileageButton.setOnClickListener(new View.OnClickListener() {\n             public void onClick(View v) {","path":"app/src/main/java/com/gsandchase/mileagelogger/MainActivity.java","position":36,"original_position":36,"commit_id":"185e2d9e662a4771f350a6aa1ae68f70b35ed5e6","original_commit_id":"185e2d9e662a4771f350a6aa1ae68f70b35ed5e6","user":{"login":"bminor13","id":3957348,"avatar_url":"https://avatars.githubusercontent.com/u/3957348?v=3","gravatar_id":"","url":"https://api.github.com/users/bminor13","html_url":"https://github.com/bminor13","followers_url":"https://api.github.com/users/bminor13/followers","following_url":"https://api.github.com/users/bminor13/following{/other_user}","gists_url":"https://api.github.com/users/bminor13/gists{/gist_id}","starred_url":"https://api.github.com/users/bminor13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bminor13/subscriptions","organizations_url":"https://api.github.com/users/bminor13/orgs","repos_url":"https://api.github.com/users/bminor13/repos","events_url":"https://api.github.com/users/bminor13/events{/privacy}","received_events_url":"https://api.github.com/users/bminor13/received_events","type":"User","site_admin":false},"body":"Changed the onClick handler to do two things: update the mileage counter internally, and trigger an update of the on-screen counter.","created_at":"2016-01-03T07:25:20Z","updated_at":"2016-01-03T07:25:20Z","html_url":"https://github.com/rusty2123/MileageLogger/pull/1#discussion_r48690678","pull_request_url":"https://api.github.com/repos/rusty2123/MileageLogger/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/rusty2123/MileageLogger/pulls/comments/48690678"},"html":{"href":"https://github.com/rusty2123/MileageLogger/pull/1#discussion_r48690678"},"pull_request":{"href":"https://api.github.com/repos/rusty2123/MileageLogger/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/rusty2123/MileageLogger/pulls/1","id":54920289,"html_url":"https://github.com/rusty2123/MileageLogger/pull/1","diff_url":"https://github.com/rusty2123/MileageLogger/pull/1.diff","patch_url":"https://github.com/rusty2123/MileageLogger/pull/1.patch","issue_url":"https://api.github.com/repos/rusty2123/MileageLogger/issues/1","number":1,"state":"open","locked":false,"title":"Moved counter logic to new file. Added unit test file for mileage counter.","user":{"login":"bminor13","id":3957348,"avatar_url":"https://avatars.githubusercontent.com/u/3957348?v=3","gravatar_id":"","url":"https://api.github.com/users/bminor13","html_url":"https://github.com/bminor13","followers_url":"https://api.github.com/users/bminor13/followers","following_url":"https://api.github.com/users/bminor13/following{/other_user}","gists_url":"https://api.github.com/users/bminor13/gists{/gist_id}","starred_url":"https://api.github.com/users/bminor13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bminor13/subscriptions","organizations_url":"https://api.github.com/users/bminor13/orgs","repos_url":"https://api.github.com/users/bminor13/repos","events_url":"https://api.github.com/users/bminor13/events{/privacy}","received_events_url":"https://api.github.com/users/bminor13/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-01-03T07:22:10Z","updated_at":"2016-01-03T07:25:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ace7a42074c5c953dcf0cbf42bd56b9975dcf6af","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/rusty2123/MileageLogger/pulls/1/commits","review_comments_url":"https://api.github.com/repos/rusty2123/MileageLogger/pulls/1/comments","review_comment_url":"https://api.github.com/repos/rusty2123/MileageLogger/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rusty2123/MileageLogger/issues/1/comments","statuses_url":"https://api.github.com/repos/rusty2123/MileageLogger/statuses/185e2d9e662a4771f350a6aa1ae68f70b35ed5e6","head":{"label":"bminor13:master","ref":"master","sha":"185e2d9e662a4771f350a6aa1ae68f70b35ed5e6","user":{"login":"bminor13","id":3957348,"avatar_url":"https://avatars.githubusercontent.com/u/3957348?v=3","gravatar_id":"","url":"https://api.github.com/users/bminor13","html_url":"https://github.com/bminor13","followers_url":"https://api.github.com/users/bminor13/followers","following_url":"https://api.github.com/users/bminor13/following{/other_user}","gists_url":"https://api.github.com/users/bminor13/gists{/gist_id}","starred_url":"https://api.github.com/users/bminor13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bminor13/subscriptions","organizations_url":"https://api.github.com/users/bminor13/orgs","repos_url":"https://api.github.com/users/bminor13/repos","events_url":"https://api.github.com/users/bminor13/events{/privacy}","received_events_url":"https://api.github.com/users/bminor13/received_events","type":"User","site_admin":false},"repo":{"id":48937654,"name":"MileageLogger","full_name":"bminor13/MileageLogger","owner":{"login":"bminor13","id":3957348,"avatar_url":"https://avatars.githubusercontent.com/u/3957348?v=3","gravatar_id":"","url":"https://api.github.com/users/bminor13","html_url":"https://github.com/bminor13","followers_url":"https://api.github.com/users/bminor13/followers","following_url":"https://api.github.com/users/bminor13/following{/other_user}","gists_url":"https://api.github.com/users/bminor13/gists{/gist_id}","starred_url":"https://api.github.com/users/bminor13/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bminor13/subscriptions","organizations_url":"https://api.github.com/users/bminor13/orgs","repos_url":"https://api.github.com/users/bminor13/repos","events_url":"https://api.github.com/users/bminor13/events{/privacy}","received_events_url":"https://api.github.com/users/bminor13/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bminor13/MileageLogger","description":null,"fork":true,"url":"https://api.github.com/repos/bminor13/MileageLogger","forks_url":"https://api.github.com/repos/bminor13/MileageLogger/forks","keys_url":"https://api.github.com/repos/bminor13/MileageLogger/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bminor13/MileageLogger/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bminor13/MileageLogger/teams","hooks_url":"https://api.github.com/repos/bminor13/MileageLogger/hooks","issue_events_url":"https://api.github.com/repos/bminor13/MileageLogger/issues/events{/number}","events_url":"https://api.github.com/repos/bminor13/MileageLogger/events","assignees_url":"https://api.github.com/repos/bminor13/MileageLogger/assignees{/user}","branches_url":"https://api.github.com/repos/bminor13/MileageLogger/branches{/branch}","tags_url":"https://api.github.com/repos/bminor13/MileageLogger/tags","blobs_url":"https://api.github.com/repos/bminor13/MileageLogger/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bminor13/MileageLogger/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bminor13/MileageLogger/git/refs{/sha}","trees_url":"https://api.github.com/repos/bminor13/MileageLogger/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bminor13/MileageLogger/statuses/{sha}","languages_url":"https://api.github.com/repos/bminor13/MileageLogger/languages","stargazers_url":"https://api.github.com/repos/bminor13/MileageLogger/stargazers","contributors_url":"https://api.github.com/repos/bminor13/MileageLogger/contributors","subscribers_url":"https://api.github.com/repos/bminor13/MileageLogger/subscribers","subscription_url":"https://api.github.com/repos/bminor13/MileageLogger/subscription","commits_url":"https://api.github.com/repos/bminor13/MileageLogger/commits{/sha}","git_commits_url":"https://api.github.com/repos/bminor13/MileageLogger/git/commits{/sha}","comments_url":"https://api.github.com/repos/bminor13/MileageLogger/comments{/number}","issue_comment_url":"https://api.github.com/repos/bminor13/MileageLogger/issues/comments{/number}","contents_url":"https://api.github.com/repos/bminor13/MileageLogger/contents/{+path}","compare_url":"https://api.github.com/repos/bminor13/MileageLogger/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bminor13/MileageLogger/merges","archive_url":"https://api.github.com/repos/bminor13/MileageLogger/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bminor13/MileageLogger/downloads","issues_url":"https://api.github.com/repos/bminor13/MileageLogger/issues{/number}","pulls_url":"https://api.github.com/repos/bminor13/MileageLogger/pulls{/number}","milestones_url":"https://api.github.com/repos/bminor13/MileageLogger/milestones{/number}","notifications_url":"https://api.github.com/repos/bminor13/MileageLogger/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bminor13/MileageLogger/labels{/name}","releases_url":"https://api.github.com/repos/bminor13/MileageLogger/releases{/id}","created_at":"2016-01-03T07:19:03Z","updated_at":"2016-01-03T07:19:04Z","pushed_at":"2016-01-03T07:20:13Z","git_url":"git://github.com/bminor13/MileageLogger.git","ssh_url":"git@github.com:bminor13/MileageLogger.git","clone_url":"https://github.com/bminor13/MileageLogger.git","svn_url":"https://github.com/bminor13/MileageLogger","homepage":null,"size":94,"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":"rusty2123:master","ref":"master","sha":"10137f2ae84476ec75ee125618071c1dbfe5e916","user":{"login":"rusty2123","id":12088977,"avatar_url":"https://avatars.githubusercontent.com/u/12088977?v=3","gravatar_id":"","url":"https://api.github.com/users/rusty2123","html_url":"https://github.com/rusty2123","followers_url":"https://api.github.com/users/rusty2123/followers","following_url":"https://api.github.com/users/rusty2123/following{/other_user}","gists_url":"https://api.github.com/users/rusty2123/gists{/gist_id}","starred_url":"https://api.github.com/users/rusty2123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rusty2123/subscriptions","organizations_url":"https://api.github.com/users/rusty2123/orgs","repos_url":"https://api.github.com/users/rusty2123/repos","events_url":"https://api.github.com/users/rusty2123/events{/privacy}","received_events_url":"https://api.github.com/users/rusty2123/received_events","type":"User","site_admin":false},"repo":{"id":48928041,"name":"MileageLogger","full_name":"rusty2123/MileageLogger","owner":{"login":"rusty2123","id":12088977,"avatar_url":"https://avatars.githubusercontent.com/u/12088977?v=3","gravatar_id":"","url":"https://api.github.com/users/rusty2123","html_url":"https://github.com/rusty2123","followers_url":"https://api.github.com/users/rusty2123/followers","following_url":"https://api.github.com/users/rusty2123/following{/other_user}","gists_url":"https://api.github.com/users/rusty2123/gists{/gist_id}","starred_url":"https://api.github.com/users/rusty2123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rusty2123/subscriptions","organizations_url":"https://api.github.com/users/rusty2123/orgs","repos_url":"https://api.github.com/users/rusty2123/repos","events_url":"https://api.github.com/users/rusty2123/events{/privacy}","received_events_url":"https://api.github.com/users/rusty2123/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rusty2123/MileageLogger","description":null,"fork":false,"url":"https://api.github.com/repos/rusty2123/MileageLogger","forks_url":"https://api.github.com/repos/rusty2123/MileageLogger/forks","keys_url":"https://api.github.com/repos/rusty2123/MileageLogger/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rusty2123/MileageLogger/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rusty2123/MileageLogger/teams","hooks_url":"https://api.github.com/repos/rusty2123/MileageLogger/hooks","issue_events_url":"https://api.github.com/repos/rusty2123/MileageLogger/issues/events{/number}","events_url":"https://api.github.com/repos/rusty2123/MileageLogger/events","assignees_url":"https://api.github.com/repos/rusty2123/MileageLogger/assignees{/user}","branches_url":"https://api.github.com/repos/rusty2123/MileageLogger/branches{/branch}","tags_url":"https://api.github.com/repos/rusty2123/MileageLogger/tags","blobs_url":"https://api.github.com/repos/rusty2123/MileageLogger/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rusty2123/MileageLogger/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rusty2123/MileageLogger/git/refs{/sha}","trees_url":"https://api.github.com/repos/rusty2123/MileageLogger/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rusty2123/MileageLogger/statuses/{sha}","languages_url":"https://api.github.com/repos/rusty2123/MileageLogger/languages","stargazers_url":"https://api.github.com/repos/rusty2123/MileageLogger/stargazers","contributors_url":"https://api.github.com/repos/rusty2123/MileageLogger/contributors","subscribers_url":"https://api.github.com/repos/rusty2123/MileageLogger/subscribers","subscription_url":"https://api.github.com/repos/rusty2123/MileageLogger/subscription","commits_url":"https://api.github.com/repos/rusty2123/MileageLogger/commits{/sha}","git_commits_url":"https://api.github.com/repos/rusty2123/MileageLogger/git/commits{/sha}","comments_url":"https://api.github.com/repos/rusty2123/MileageLogger/comments{/number}","issue_comment_url":"https://api.github.com/repos/rusty2123/MileageLogger/issues/comments{/number}","contents_url":"https://api.github.com/repos/rusty2123/MileageLogger/contents/{+path}","compare_url":"https://api.github.com/repos/rusty2123/MileageLogger/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rusty2123/MileageLogger/merges","archive_url":"https://api.github.com/repos/rusty2123/MileageLogger/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rusty2123/MileageLogger/downloads","issues_url":"https://api.github.com/repos/rusty2123/MileageLogger/issues{/number}","pulls_url":"https://api.github.com/repos/rusty2123/MileageLogger/pulls{/number}","milestones_url":"https://api.github.com/repos/rusty2123/MileageLogger/milestones{/number}","notifications_url":"https://api.github.com/repos/rusty2123/MileageLogger/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rusty2123/MileageLogger/labels{/name}","releases_url":"https://api.github.com/repos/rusty2123/MileageLogger/releases{/id}","created_at":"2016-01-02T23:58:14Z","updated_at":"2016-01-02T23:58:23Z","pushed_at":"2016-01-03T07:22:11Z","git_url":"git://github.com/rusty2123/MileageLogger.git","ssh_url":"git@github.com:rusty2123/MileageLogger.git","clone_url":"https://github.com/rusty2123/MileageLogger.git","svn_url":"https://github.com/rusty2123/MileageLogger","homepage":null,"size":90,"stargazers_count":0,"watchers_count":0,"language":"Java","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/rusty2123/MileageLogger/pulls/1"},"html":{"href":"https://github.com/rusty2123/MileageLogger/pull/1"},"issue":{"href":"https://api.github.com/repos/rusty2123/MileageLogger/issues/1"},"comments":{"href":"https://api.github.com/repos/rusty2123/MileageLogger/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/rusty2123/MileageLogger/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/rusty2123/MileageLogger/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rusty2123/MileageLogger/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/rusty2123/MileageLogger/statuses/185e2d9e662a4771f350a6aa1ae68f70b35ed5e6"}}}}