{"action":"created","comment":{"url":"https://api.github.com/repos/cgeo/cgeo/pulls/comments/39403736","id":39403736,"diff_hunk":"@@ -351,6 +357,19 @@ public void onRatingChanged(final float stars) {\n         }\n     }\n \n+    private void intializeFavoritecheck(Geocache cache) {\n+        if (Settings.isGCPremiumMember() && cache.supportsFavoritePoints() && !cache.isOwner()) {\n+            String favoritecount = Settings.getPremFavPoints();\n+            if (favoritecount != null && Integer.parseInt(favoritecount) > 0) {\n+                favbox.setVisibility(View.VISIBLE);\n+                favoritecheck.setChecked(true);\n+                favoriteremaining.setVisibility(View.VISIBLE);\n+                favoriteremaining.setText(getString(R.string.fav_points_remaining, favoritecount));\n+            }\n+","path":"main/src/cgeo/geocaching/LogCacheActivity.java","position":40,"original_position":40,"commit_id":"dc16bee9da5750b8467797602f1afe386a7a6481","original_commit_id":"dc16bee9da5750b8467797602f1afe386a7a6481","user":{"login":"samueltardieu","id":44656,"avatar_url":"https://avatars.githubusercontent.com/u/44656?v=3","gravatar_id":"","url":"https://api.github.com/users/samueltardieu","html_url":"https://github.com/samueltardieu","followers_url":"https://api.github.com/users/samueltardieu/followers","following_url":"https://api.github.com/users/samueltardieu/following{/other_user}","gists_url":"https://api.github.com/users/samueltardieu/gists{/gist_id}","starred_url":"https://api.github.com/users/samueltardieu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samueltardieu/subscriptions","organizations_url":"https://api.github.com/users/samueltardieu/orgs","repos_url":"https://api.github.com/users/samueltardieu/repos","events_url":"https://api.github.com/users/samueltardieu/events{/privacy}","received_events_url":"https://api.github.com/users/samueltardieu/received_events","type":"User","site_admin":false},"body":"Extra empty line.","created_at":"2015-09-14T14:58:25Z","updated_at":"2015-09-14T14:58:25Z","html_url":"https://github.com/cgeo/cgeo/pull/5134#discussion_r39403736","pull_request_url":"https://api.github.com/repos/cgeo/cgeo/pulls/5134","_links":{"self":{"href":"https://api.github.com/repos/cgeo/cgeo/pulls/comments/39403736"},"html":{"href":"https://github.com/cgeo/cgeo/pull/5134#discussion_r39403736"},"pull_request":{"href":"https://api.github.com/repos/cgeo/cgeo/pulls/5134"}}},"pull_request":{"url":"https://api.github.com/repos/cgeo/cgeo/pulls/5134","id":42179235,"html_url":"https://github.com/cgeo/cgeo/pull/5134","diff_url":"https://github.com/cgeo/cgeo/pull/5134.diff","patch_url":"https://github.com/cgeo/cgeo/pull/5134.patch","issue_url":"https://api.github.com/repos/cgeo/cgeo/issues/5134","number":5134,"state":"open","locked":false,"title":"Add to favorite list check in log visit (Fixes #4347)","user":{"login":"madankb","id":2402373,"avatar_url":"https://avatars.githubusercontent.com/u/2402373?v=3","gravatar_id":"","url":"https://api.github.com/users/madankb","html_url":"https://github.com/madankb","followers_url":"https://api.github.com/users/madankb/followers","following_url":"https://api.github.com/users/madankb/following{/other_user}","gists_url":"https://api.github.com/users/madankb/gists{/gist_id}","starred_url":"https://api.github.com/users/madankb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/madankb/subscriptions","organizations_url":"https://api.github.com/users/madankb/orgs","repos_url":"https://api.github.com/users/madankb/repos","events_url":"https://api.github.com/users/madankb/events{/privacy}","received_events_url":"https://api.github.com/users/madankb/received_events","type":"User","site_admin":false},"body":"Fix for the issue \"Allow adding favpoint in logging activity #4347\". Please review and share your thought.","created_at":"2015-08-11T21:17:13Z","updated_at":"2015-09-14T14:58:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/cgeo/cgeo/pulls/5134/commits","review_comments_url":"https://api.github.com/repos/cgeo/cgeo/pulls/5134/comments","review_comment_url":"https://api.github.com/repos/cgeo/cgeo/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cgeo/cgeo/issues/5134/comments","statuses_url":"https://api.github.com/repos/cgeo/cgeo/statuses/dc16bee9da5750b8467797602f1afe386a7a6481","head":{"label":"madankb:my_cgeo","ref":"my_cgeo","sha":"dc16bee9da5750b8467797602f1afe386a7a6481","user":{"login":"madankb","id":2402373,"avatar_url":"https://avatars.githubusercontent.com/u/2402373?v=3","gravatar_id":"","url":"https://api.github.com/users/madankb","html_url":"https://github.com/madankb","followers_url":"https://api.github.com/users/madankb/followers","following_url":"https://api.github.com/users/madankb/following{/other_user}","gists_url":"https://api.github.com/users/madankb/gists{/gist_id}","starred_url":"https://api.github.com/users/madankb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/madankb/subscriptions","organizations_url":"https://api.github.com/users/madankb/orgs","repos_url":"https://api.github.com/users/madankb/repos","events_url":"https://api.github.com/users/madankb/events{/privacy}","received_events_url":"https://api.github.com/users/madankb/received_events","type":"User","site_admin":false},"repo":{"id":28009027,"name":"cgeo","full_name":"madankb/cgeo","owner":{"login":"madankb","id":2402373,"avatar_url":"https://avatars.githubusercontent.com/u/2402373?v=3","gravatar_id":"","url":"https://api.github.com/users/madankb","html_url":"https://github.com/madankb","followers_url":"https://api.github.com/users/madankb/followers","following_url":"https://api.github.com/users/madankb/following{/other_user}","gists_url":"https://api.github.com/users/madankb/gists{/gist_id}","starred_url":"https://api.github.com/users/madankb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/madankb/subscriptions","organizations_url":"https://api.github.com/users/madankb/orgs","repos_url":"https://api.github.com/users/madankb/repos","events_url":"https://api.github.com/users/madankb/events{/privacy}","received_events_url":"https://api.github.com/users/madankb/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/madankb/cgeo","description":"c:geo - The powerful Android geocaching app.","fork":true,"url":"https://api.github.com/repos/madankb/cgeo","forks_url":"https://api.github.com/repos/madankb/cgeo/forks","keys_url":"https://api.github.com/repos/madankb/cgeo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/madankb/cgeo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/madankb/cgeo/teams","hooks_url":"https://api.github.com/repos/madankb/cgeo/hooks","issue_events_url":"https://api.github.com/repos/madankb/cgeo/issues/events{/number}","events_url":"https://api.github.com/repos/madankb/cgeo/events","assignees_url":"https://api.github.com/repos/madankb/cgeo/assignees{/user}","branches_url":"https://api.github.com/repos/madankb/cgeo/branches{/branch}","tags_url":"https://api.github.com/repos/madankb/cgeo/tags","blobs_url":"https://api.github.com/repos/madankb/cgeo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/madankb/cgeo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/madankb/cgeo/git/refs{/sha}","trees_url":"https://api.github.com/repos/madankb/cgeo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/madankb/cgeo/statuses/{sha}","languages_url":"https://api.github.com/repos/madankb/cgeo/languages","stargazers_url":"https://api.github.com/repos/madankb/cgeo/stargazers","contributors_url":"https://api.github.com/repos/madankb/cgeo/contributors","subscribers_url":"https://api.github.com/repos/madankb/cgeo/subscribers","subscription_url":"https://api.github.com/repos/madankb/cgeo/subscription","commits_url":"https://api.github.com/repos/madankb/cgeo/commits{/sha}","git_commits_url":"https://api.github.com/repos/madankb/cgeo/git/commits{/sha}","comments_url":"https://api.github.com/repos/madankb/cgeo/comments{/number}","issue_comment_url":"https://api.github.com/repos/madankb/cgeo/issues/comments{/number}","contents_url":"https://api.github.com/repos/madankb/cgeo/contents/{+path}","compare_url":"https://api.github.com/repos/madankb/cgeo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/madankb/cgeo/merges","archive_url":"https://api.github.com/repos/madankb/cgeo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/madankb/cgeo/downloads","issues_url":"https://api.github.com/repos/madankb/cgeo/issues{/number}","pulls_url":"https://api.github.com/repos/madankb/cgeo/pulls{/number}","milestones_url":"https://api.github.com/repos/madankb/cgeo/milestones{/number}","notifications_url":"https://api.github.com/repos/madankb/cgeo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/madankb/cgeo/labels{/name}","releases_url":"https://api.github.com/repos/madankb/cgeo/releases{/id}","created_at":"2014-12-14T21:40:12Z","updated_at":"2015-01-19T21:38:07Z","pushed_at":"2015-08-11T21:12:12Z","git_url":"git://github.com/madankb/cgeo.git","ssh_url":"git@github.com:madankb/cgeo.git","clone_url":"https://github.com/madankb/cgeo.git","svn_url":"https://github.com/madankb/cgeo","homepage":"www.cgeo.org","size":179567,"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":"cgeo:master","ref":"master","sha":"b2cec8b2bac5a76068bacd7b71af4c716e292c2d","user":{"login":"cgeo","id":907088,"avatar_url":"https://avatars.githubusercontent.com/u/907088?v=3","gravatar_id":"","url":"https://api.github.com/users/cgeo","html_url":"https://github.com/cgeo","followers_url":"https://api.github.com/users/cgeo/followers","following_url":"https://api.github.com/users/cgeo/following{/other_user}","gists_url":"https://api.github.com/users/cgeo/gists{/gist_id}","starred_url":"https://api.github.com/users/cgeo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cgeo/subscriptions","organizations_url":"https://api.github.com/users/cgeo/orgs","repos_url":"https://api.github.com/users/cgeo/repos","events_url":"https://api.github.com/users/cgeo/events{/privacy}","received_events_url":"https://api.github.com/users/cgeo/received_events","type":"Organization","site_admin":false},"repo":{"id":2028724,"name":"cgeo","full_name":"cgeo/cgeo","owner":{"login":"cgeo","id":907088,"avatar_url":"https://avatars.githubusercontent.com/u/907088?v=3","gravatar_id":"","url":"https://api.github.com/users/cgeo","html_url":"https://github.com/cgeo","followers_url":"https://api.github.com/users/cgeo/followers","following_url":"https://api.github.com/users/cgeo/following{/other_user}","gists_url":"https://api.github.com/users/cgeo/gists{/gist_id}","starred_url":"https://api.github.com/users/cgeo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cgeo/subscriptions","organizations_url":"https://api.github.com/users/cgeo/orgs","repos_url":"https://api.github.com/users/cgeo/repos","events_url":"https://api.github.com/users/cgeo/events{/privacy}","received_events_url":"https://api.github.com/users/cgeo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cgeo/cgeo","description":"c:geo - The powerful Android geocaching app.","fork":false,"url":"https://api.github.com/repos/cgeo/cgeo","forks_url":"https://api.github.com/repos/cgeo/cgeo/forks","keys_url":"https://api.github.com/repos/cgeo/cgeo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cgeo/cgeo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cgeo/cgeo/teams","hooks_url":"https://api.github.com/repos/cgeo/cgeo/hooks","issue_events_url":"https://api.github.com/repos/cgeo/cgeo/issues/events{/number}","events_url":"https://api.github.com/repos/cgeo/cgeo/events","assignees_url":"https://api.github.com/repos/cgeo/cgeo/assignees{/user}","branches_url":"https://api.github.com/repos/cgeo/cgeo/branches{/branch}","tags_url":"https://api.github.com/repos/cgeo/cgeo/tags","blobs_url":"https://api.github.com/repos/cgeo/cgeo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cgeo/cgeo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cgeo/cgeo/git/refs{/sha}","trees_url":"https://api.github.com/repos/cgeo/cgeo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cgeo/cgeo/statuses/{sha}","languages_url":"https://api.github.com/repos/cgeo/cgeo/languages","stargazers_url":"https://api.github.com/repos/cgeo/cgeo/stargazers","contributors_url":"https://api.github.com/repos/cgeo/cgeo/contributors","subscribers_url":"https://api.github.com/repos/cgeo/cgeo/subscribers","subscription_url":"https://api.github.com/repos/cgeo/cgeo/subscription","commits_url":"https://api.github.com/repos/cgeo/cgeo/commits{/sha}","git_commits_url":"https://api.github.com/repos/cgeo/cgeo/git/commits{/sha}","comments_url":"https://api.github.com/repos/cgeo/cgeo/comments{/number}","issue_comment_url":"https://api.github.com/repos/cgeo/cgeo/issues/comments{/number}","contents_url":"https://api.github.com/repos/cgeo/cgeo/contents/{+path}","compare_url":"https://api.github.com/repos/cgeo/cgeo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cgeo/cgeo/merges","archive_url":"https://api.github.com/repos/cgeo/cgeo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cgeo/cgeo/downloads","issues_url":"https://api.github.com/repos/cgeo/cgeo/issues{/number}","pulls_url":"https://api.github.com/repos/cgeo/cgeo/pulls{/number}","milestones_url":"https://api.github.com/repos/cgeo/cgeo/milestones{/number}","notifications_url":"https://api.github.com/repos/cgeo/cgeo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cgeo/cgeo/labels{/name}","releases_url":"https://api.github.com/repos/cgeo/cgeo/releases{/id}","created_at":"2011-07-11T06:02:47Z","updated_at":"2015-09-14T02:31:07Z","pushed_at":"2015-09-12T09:14:56Z","git_url":"git://github.com/cgeo/cgeo.git","ssh_url":"git@github.com:cgeo/cgeo.git","clone_url":"https://github.com/cgeo/cgeo.git","svn_url":"https://github.com/cgeo/cgeo","homepage":"www.cgeo.org","size":220759,"stargazers_count":623,"watchers_count":623,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":410,"mirror_url":null,"open_issues_count":475,"forks":410,"open_issues":475,"watchers":623,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cgeo/cgeo/pulls/5134"},"html":{"href":"https://github.com/cgeo/cgeo/pull/5134"},"issue":{"href":"https://api.github.com/repos/cgeo/cgeo/issues/5134"},"comments":{"href":"https://api.github.com/repos/cgeo/cgeo/issues/5134/comments"},"review_comments":{"href":"https://api.github.com/repos/cgeo/cgeo/pulls/5134/comments"},"review_comment":{"href":"https://api.github.com/repos/cgeo/cgeo/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cgeo/cgeo/pulls/5134/commits"},"statuses":{"href":"https://api.github.com/repos/cgeo/cgeo/statuses/dc16bee9da5750b8467797602f1afe386a7a6481"}}}}