{"action":"created","comment":{"url":"https://api.github.com/repos/fourlastor/passmanager/pulls/comments/51363350","id":51363350,"diff_hunk":"@@ -0,0 +1,34 @@\n+package com.fourlastor.passmanager;\n+\n+import android.app.Application;\n+import android.support.annotation.NonNull;\n+\n+import com.fourlastor.passmanager.injection.ApplicationComponent;\n+import com.fourlastor.passmanager.injection.DaggerApplicationComponent;\n+import com.fourlastor.passmanager.injection.Injector;\n+\n+public class PassManagerApplication extends Application {\n+\n+    private static final Object COMPONENT_LOCK = new Object();\n+\n+    private ApplicationComponent component;\n+\n+    @Override\n+    public Object getSystemService(@NonNull String name) {\n+        if (Injector.matchesService(name)) {\n+            return getOrCreateComponent();\n+        }\n+\n+        return super.getSystemService(name);","path":"app/src/main/java/com/fourlastor/passmanager/PassManagerApplication.java","position":22,"original_position":22,"commit_id":"8bdca66c1143cbf49e076fee8b08bedcc3e1c326","original_commit_id":"8bdca66c1143cbf49e076fee8b08bedcc3e1c326","user":{"login":"Electryc","id":913571,"avatar_url":"https://avatars.githubusercontent.com/u/913571?v=3","gravatar_id":"","url":"https://api.github.com/users/Electryc","html_url":"https://github.com/Electryc","followers_url":"https://api.github.com/users/Electryc/followers","following_url":"https://api.github.com/users/Electryc/following{/other_user}","gists_url":"https://api.github.com/users/Electryc/gists{/gist_id}","starred_url":"https://api.github.com/users/Electryc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Electryc/subscriptions","organizations_url":"https://api.github.com/users/Electryc/orgs","repos_url":"https://api.github.com/users/Electryc/repos","events_url":"https://api.github.com/users/Electryc/events{/privacy}","received_events_url":"https://api.github.com/users/Electryc/received_events","type":"User","site_admin":false},"body":"Maybe worth expanding a bit the idea here with dagger components and system service :smile_cat: ","created_at":"2016-01-31T16:48:27Z","updated_at":"2016-01-31T16:48:27Z","html_url":"https://github.com/fourlastor/passmanager/pull/1#discussion_r51363350","pull_request_url":"https://api.github.com/repos/fourlastor/passmanager/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/fourlastor/passmanager/pulls/comments/51363350"},"html":{"href":"https://github.com/fourlastor/passmanager/pull/1#discussion_r51363350"},"pull_request":{"href":"https://api.github.com/repos/fourlastor/passmanager/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/fourlastor/passmanager/pulls/1","id":57745334,"html_url":"https://github.com/fourlastor/passmanager/pull/1","diff_url":"https://github.com/fourlastor/passmanager/pull/1.diff","patch_url":"https://github.com/fourlastor/passmanager/pull/1.patch","issue_url":"https://api.github.com/repos/fourlastor/passmanager/issues/1","number":1,"state":"open","locked":false,"title":"Secrets list","user":{"login":"fourlastor","id":1263058,"avatar_url":"https://avatars.githubusercontent.com/u/1263058?v=3","gravatar_id":"","url":"https://api.github.com/users/fourlastor","html_url":"https://github.com/fourlastor","followers_url":"https://api.github.com/users/fourlastor/followers","following_url":"https://api.github.com/users/fourlastor/following{/other_user}","gists_url":"https://api.github.com/users/fourlastor/gists{/gist_id}","starred_url":"https://api.github.com/users/fourlastor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fourlastor/subscriptions","organizations_url":"https://api.github.com/users/fourlastor/orgs","repos_url":"https://api.github.com/users/fourlastor/repos","events_url":"https://api.github.com/users/fourlastor/events{/privacy}","received_events_url":"https://api.github.com/users/fourlastor/received_events","type":"User","site_admin":false},"body":"Implements the view of a list of secrets in the app.\r\n\r\nA secret is a Credential (username-password), a credit card, or whatever will be stored in the safe.\r\n\r\nWhat's not implemented is the password-protection of the safe.","created_at":"2016-01-30T17:43:33Z","updated_at":"2016-01-31T16:48:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9da9d7f76ba9a8ae994d1e8cf93a9f98deee5876","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/fourlastor/passmanager/pulls/1/commits","review_comments_url":"https://api.github.com/repos/fourlastor/passmanager/pulls/1/comments","review_comment_url":"https://api.github.com/repos/fourlastor/passmanager/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fourlastor/passmanager/issues/1/comments","statuses_url":"https://api.github.com/repos/fourlastor/passmanager/statuses/8bdca66c1143cbf49e076fee8b08bedcc3e1c326","head":{"label":"fourlastor:secrets-list","ref":"secrets-list","sha":"8bdca66c1143cbf49e076fee8b08bedcc3e1c326","user":{"login":"fourlastor","id":1263058,"avatar_url":"https://avatars.githubusercontent.com/u/1263058?v=3","gravatar_id":"","url":"https://api.github.com/users/fourlastor","html_url":"https://github.com/fourlastor","followers_url":"https://api.github.com/users/fourlastor/followers","following_url":"https://api.github.com/users/fourlastor/following{/other_user}","gists_url":"https://api.github.com/users/fourlastor/gists{/gist_id}","starred_url":"https://api.github.com/users/fourlastor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fourlastor/subscriptions","organizations_url":"https://api.github.com/users/fourlastor/orgs","repos_url":"https://api.github.com/users/fourlastor/repos","events_url":"https://api.github.com/users/fourlastor/events{/privacy}","received_events_url":"https://api.github.com/users/fourlastor/received_events","type":"User","site_admin":false},"repo":{"id":50732080,"name":"passmanager","full_name":"fourlastor/passmanager","owner":{"login":"fourlastor","id":1263058,"avatar_url":"https://avatars.githubusercontent.com/u/1263058?v=3","gravatar_id":"","url":"https://api.github.com/users/fourlastor","html_url":"https://github.com/fourlastor","followers_url":"https://api.github.com/users/fourlastor/followers","following_url":"https://api.github.com/users/fourlastor/following{/other_user}","gists_url":"https://api.github.com/users/fourlastor/gists{/gist_id}","starred_url":"https://api.github.com/users/fourlastor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fourlastor/subscriptions","organizations_url":"https://api.github.com/users/fourlastor/orgs","repos_url":"https://api.github.com/users/fourlastor/repos","events_url":"https://api.github.com/users/fourlastor/events{/privacy}","received_events_url":"https://api.github.com/users/fourlastor/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/fourlastor/passmanager","description":"","fork":false,"url":"https://api.github.com/repos/fourlastor/passmanager","forks_url":"https://api.github.com/repos/fourlastor/passmanager/forks","keys_url":"https://api.github.com/repos/fourlastor/passmanager/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fourlastor/passmanager/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fourlastor/passmanager/teams","hooks_url":"https://api.github.com/repos/fourlastor/passmanager/hooks","issue_events_url":"https://api.github.com/repos/fourlastor/passmanager/issues/events{/number}","events_url":"https://api.github.com/repos/fourlastor/passmanager/events","assignees_url":"https://api.github.com/repos/fourlastor/passmanager/assignees{/user}","branches_url":"https://api.github.com/repos/fourlastor/passmanager/branches{/branch}","tags_url":"https://api.github.com/repos/fourlastor/passmanager/tags","blobs_url":"https://api.github.com/repos/fourlastor/passmanager/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fourlastor/passmanager/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fourlastor/passmanager/git/refs{/sha}","trees_url":"https://api.github.com/repos/fourlastor/passmanager/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fourlastor/passmanager/statuses/{sha}","languages_url":"https://api.github.com/repos/fourlastor/passmanager/languages","stargazers_url":"https://api.github.com/repos/fourlastor/passmanager/stargazers","contributors_url":"https://api.github.com/repos/fourlastor/passmanager/contributors","subscribers_url":"https://api.github.com/repos/fourlastor/passmanager/subscribers","subscription_url":"https://api.github.com/repos/fourlastor/passmanager/subscription","commits_url":"https://api.github.com/repos/fourlastor/passmanager/commits{/sha}","git_commits_url":"https://api.github.com/repos/fourlastor/passmanager/git/commits{/sha}","comments_url":"https://api.github.com/repos/fourlastor/passmanager/comments{/number}","issue_comment_url":"https://api.github.com/repos/fourlastor/passmanager/issues/comments{/number}","contents_url":"https://api.github.com/repos/fourlastor/passmanager/contents/{+path}","compare_url":"https://api.github.com/repos/fourlastor/passmanager/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fourlastor/passmanager/merges","archive_url":"https://api.github.com/repos/fourlastor/passmanager/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fourlastor/passmanager/downloads","issues_url":"https://api.github.com/repos/fourlastor/passmanager/issues{/number}","pulls_url":"https://api.github.com/repos/fourlastor/passmanager/pulls{/number}","milestones_url":"https://api.github.com/repos/fourlastor/passmanager/milestones{/number}","notifications_url":"https://api.github.com/repos/fourlastor/passmanager/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fourlastor/passmanager/labels{/name}","releases_url":"https://api.github.com/repos/fourlastor/passmanager/releases{/id}","deployments_url":"https://api.github.com/repos/fourlastor/passmanager/deployments","created_at":"2016-01-30T16:04:19Z","updated_at":"2016-01-30T16:04:45Z","pushed_at":"2016-01-31T16:26:11Z","git_url":"git://github.com/fourlastor/passmanager.git","ssh_url":"git@github.com:fourlastor/passmanager.git","clone_url":"https://github.com/fourlastor/passmanager.git","svn_url":"https://github.com/fourlastor/passmanager","homepage":null,"size":106,"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":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"fourlastor:master","ref":"master","sha":"aabab534cb1b00c285ebb7609ab9331f7ac4af02","user":{"login":"fourlastor","id":1263058,"avatar_url":"https://avatars.githubusercontent.com/u/1263058?v=3","gravatar_id":"","url":"https://api.github.com/users/fourlastor","html_url":"https://github.com/fourlastor","followers_url":"https://api.github.com/users/fourlastor/followers","following_url":"https://api.github.com/users/fourlastor/following{/other_user}","gists_url":"https://api.github.com/users/fourlastor/gists{/gist_id}","starred_url":"https://api.github.com/users/fourlastor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fourlastor/subscriptions","organizations_url":"https://api.github.com/users/fourlastor/orgs","repos_url":"https://api.github.com/users/fourlastor/repos","events_url":"https://api.github.com/users/fourlastor/events{/privacy}","received_events_url":"https://api.github.com/users/fourlastor/received_events","type":"User","site_admin":false},"repo":{"id":50732080,"name":"passmanager","full_name":"fourlastor/passmanager","owner":{"login":"fourlastor","id":1263058,"avatar_url":"https://avatars.githubusercontent.com/u/1263058?v=3","gravatar_id":"","url":"https://api.github.com/users/fourlastor","html_url":"https://github.com/fourlastor","followers_url":"https://api.github.com/users/fourlastor/followers","following_url":"https://api.github.com/users/fourlastor/following{/other_user}","gists_url":"https://api.github.com/users/fourlastor/gists{/gist_id}","starred_url":"https://api.github.com/users/fourlastor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fourlastor/subscriptions","organizations_url":"https://api.github.com/users/fourlastor/orgs","repos_url":"https://api.github.com/users/fourlastor/repos","events_url":"https://api.github.com/users/fourlastor/events{/privacy}","received_events_url":"https://api.github.com/users/fourlastor/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/fourlastor/passmanager","description":"","fork":false,"url":"https://api.github.com/repos/fourlastor/passmanager","forks_url":"https://api.github.com/repos/fourlastor/passmanager/forks","keys_url":"https://api.github.com/repos/fourlastor/passmanager/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fourlastor/passmanager/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fourlastor/passmanager/teams","hooks_url":"https://api.github.com/repos/fourlastor/passmanager/hooks","issue_events_url":"https://api.github.com/repos/fourlastor/passmanager/issues/events{/number}","events_url":"https://api.github.com/repos/fourlastor/passmanager/events","assignees_url":"https://api.github.com/repos/fourlastor/passmanager/assignees{/user}","branches_url":"https://api.github.com/repos/fourlastor/passmanager/branches{/branch}","tags_url":"https://api.github.com/repos/fourlastor/passmanager/tags","blobs_url":"https://api.github.com/repos/fourlastor/passmanager/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fourlastor/passmanager/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fourlastor/passmanager/git/refs{/sha}","trees_url":"https://api.github.com/repos/fourlastor/passmanager/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fourlastor/passmanager/statuses/{sha}","languages_url":"https://api.github.com/repos/fourlastor/passmanager/languages","stargazers_url":"https://api.github.com/repos/fourlastor/passmanager/stargazers","contributors_url":"https://api.github.com/repos/fourlastor/passmanager/contributors","subscribers_url":"https://api.github.com/repos/fourlastor/passmanager/subscribers","subscription_url":"https://api.github.com/repos/fourlastor/passmanager/subscription","commits_url":"https://api.github.com/repos/fourlastor/passmanager/commits{/sha}","git_commits_url":"https://api.github.com/repos/fourlastor/passmanager/git/commits{/sha}","comments_url":"https://api.github.com/repos/fourlastor/passmanager/comments{/number}","issue_comment_url":"https://api.github.com/repos/fourlastor/passmanager/issues/comments{/number}","contents_url":"https://api.github.com/repos/fourlastor/passmanager/contents/{+path}","compare_url":"https://api.github.com/repos/fourlastor/passmanager/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fourlastor/passmanager/merges","archive_url":"https://api.github.com/repos/fourlastor/passmanager/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fourlastor/passmanager/downloads","issues_url":"https://api.github.com/repos/fourlastor/passmanager/issues{/number}","pulls_url":"https://api.github.com/repos/fourlastor/passmanager/pulls{/number}","milestones_url":"https://api.github.com/repos/fourlastor/passmanager/milestones{/number}","notifications_url":"https://api.github.com/repos/fourlastor/passmanager/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fourlastor/passmanager/labels{/name}","releases_url":"https://api.github.com/repos/fourlastor/passmanager/releases{/id}","deployments_url":"https://api.github.com/repos/fourlastor/passmanager/deployments","created_at":"2016-01-30T16:04:19Z","updated_at":"2016-01-30T16:04:45Z","pushed_at":"2016-01-31T16:26:11Z","git_url":"git://github.com/fourlastor/passmanager.git","ssh_url":"git@github.com:fourlastor/passmanager.git","clone_url":"https://github.com/fourlastor/passmanager.git","svn_url":"https://github.com/fourlastor/passmanager","homepage":null,"size":106,"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":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/fourlastor/passmanager/pulls/1"},"html":{"href":"https://github.com/fourlastor/passmanager/pull/1"},"issue":{"href":"https://api.github.com/repos/fourlastor/passmanager/issues/1"},"comments":{"href":"https://api.github.com/repos/fourlastor/passmanager/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/fourlastor/passmanager/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/fourlastor/passmanager/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fourlastor/passmanager/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/fourlastor/passmanager/statuses/8bdca66c1143cbf49e076fee8b08bedcc3e1c326"}}}}