{"action":"created","comment":{"url":"https://api.github.com/repos/SergeyChemkayev/AndroidLearningApp/pulls/comments/235917485","pull_request_review_id":177896647,"id":235917485,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzNTkxNzQ4NQ==","diff_hunk":"@@ -0,0 +1,54 @@\n+package com.example.androidlearningapp.movies.ui.activity\r\n+\r\n+import android.content.Context\r\n+import android.content.Intent\r\n+import android.os.Bundle\r\n+import android.support.v7.app.AppCompatActivity\r\n+import android.view.MenuItem\r\n+import com.example.androidlearningapp.R\r\n+import com.example.androidlearningapp.movies.data.api.PreferencesApi\r\n+import com.example.androidlearningapp.movies.data.api.PreferencesManager\r\n+import kotlinx.android.synthetic.main.activity_preferences.*\r\n+\r\n+class PreferencesActivity : AppCompatActivity() {\r\n+\r\n+    lateinit var preferencesApi: PreferencesApi\r\n+\r\n+    companion object {\r\n+        fun open(context: Context) {\r\n+            val intent = Intent(context, PreferencesActivity::class.java)\r\n+            context.startActivity(intent)\r\n+        }\r\n+    }\r\n+\r\n+    override fun onCreate(savedInstanceState: Bundle?) {\r\n+        super.onCreate(savedInstanceState)\r\n+        setContentView(R.layout.activity_preferences)\r\n+        preferencesApi = PreferencesManager(getPreferences(Context.MODE_PRIVATE))\r\n+        getData()\r\n+    }\r\n+\r\n+    override fun onStop() {\r\n+        super.onStop()\r\n+        saveData()\r\n+    }\r\n+\r\n+    override fun onOptionsItemSelected(item: MenuItem?): Boolean {\r\n+        val itemId = item?.itemId\r","path":"app/src/main/java/com/example/androidlearningapp/movies/ui/activity/PreferencesActivity.kt","position":37,"original_position":37,"commit_id":"5ee7c96cca0e783058efe0cb83254c92fb62dba5","original_commit_id":"5ee7c96cca0e783058efe0cb83254c92fb62dba5","user":{"login":"SergeyChemkayev","id":38933953,"node_id":"MDQ6VXNlcjM4OTMzOTUz","avatar_url":"https://avatars1.githubusercontent.com/u/38933953?v=4","gravatar_id":"","url":"https://api.github.com/users/SergeyChemkayev","html_url":"https://github.com/SergeyChemkayev","followers_url":"https://api.github.com/users/SergeyChemkayev/followers","following_url":"https://api.github.com/users/SergeyChemkayev/following{/other_user}","gists_url":"https://api.github.com/users/SergeyChemkayev/gists{/gist_id}","starred_url":"https://api.github.com/users/SergeyChemkayev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SergeyChemkayev/subscriptions","organizations_url":"https://api.github.com/users/SergeyChemkayev/orgs","repos_url":"https://api.github.com/users/SergeyChemkayev/repos","events_url":"https://api.github.com/users/SergeyChemkayev/events{/privacy}","received_events_url":"https://api.github.com/users/SergeyChemkayev/received_events","type":"User","site_admin":false},"body":"done","created_at":"2018-11-23T11:46:01Z","updated_at":"2018-11-23T11:46:01Z","html_url":"https://github.com/SergeyChemkayev/AndroidLearningApp/pull/11#discussion_r235917485","pull_request_url":"https://api.github.com/repos/SergeyChemkayev/AndroidLearningApp/pulls/11","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/SergeyChemkayev/AndroidLearningApp/pulls/comments/235917485"},"html":{"href":"https://github.com/SergeyChemkayev/AndroidLearningApp/pull/11#discussion_r235917485"},"pull_request":{"href":"https://api.github.com/repos/SergeyChemkayev/AndroidLearningApp/pulls/11"}},"in_reply_to_id":235916192},"pull_request":{"url":"https://api.github.com/repos/SergeyChemkayev/AndroidLearningApp/pulls/11","id":233174539,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMzMTc0NTM5","html_url":"https://github.com/SergeyChemkayev/AndroidLearningApp/pull/11","diff_url":"https://github.com/SergeyChemkayev/AndroidLearningApp/pull/11.diff","patch_url":"https://github.com/SergeyChemkayev/AndroidLearningApp/pull/11.patch","issue_url":"https://api.github.com/repos/SergeyChemkayev/AndroidLearningApp/issues/11","number":11,"state":"open","locked":false,"title":"added PreferencesActivity with saving values of fields to preferences","user":{"login":"SergeyChemkayev","id":38933953,"node_id":"MDQ6VXNlcjM4OTMzOTUz","avatar_url":"https://avatars1.githubusercontent.com/u/38933953?v=4","gravatar_id":"","url":"https://api.github.com/users/SergeyChemkayev","html_url":"https://github.com/SergeyChemkayev","followers_url":"https://api.github.com/users/SergeyChemkayev/followers","following_url":"https://api.github.com/users/SergeyChemkayev/following{/other_user}","gists_url":"https://api.github.com/users/SergeyChemkayev/gists{/gist_id}","starred_url":"https://api.github.com/users/SergeyChemkayev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SergeyChemkayev/subscriptions","organizations_url":"https://api.github.com/users/SergeyChemkayev/orgs","repos_url":"https://api.github.com/users/SergeyChemkayev/repos","events_url":"https://api.github.com/users/SergeyChemkayev/events{/privacy}","received_events_url":"https://api.github.com/users/SergeyChemkayev/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-11-23T11:33:52Z","updated_at":"2018-11-23T11:46:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e3b9e69c025a40710cf46802ade31908cdd29d0e","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/SergeyChemkayev/AndroidLearningApp/pulls/11/commits","review_comments_url":"https://api.github.com/repos/SergeyChemkayev/AndroidLearningApp/pulls/11/comments","review_comment_url":"https://api.github.com/repos/SergeyChemkayev/AndroidLearningApp/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SergeyChemkayev/AndroidLearningApp/issues/11/comments","statuses_url":"https://api.github.com/repos/SergeyChemkayev/AndroidLearningApp/statuses/5ee7c96cca0e783058efe0cb83254c92fb62dba5","head":{"label":"SergeyChemkayev:develop","ref":"develop","sha":"5ee7c96cca0e783058efe0cb83254c92fb62dba5","user":{"login":"SergeyChemkayev","id":38933953,"node_id":"MDQ6VXNlcjM4OTMzOTUz","avatar_url":"https://avatars1.githubusercontent.com/u/38933953?v=4","gravatar_id":"","url":"https://api.github.com/users/SergeyChemkayev","html_url":"https://github.com/SergeyChemkayev","followers_url":"https://api.github.com/users/SergeyChemkayev/followers","following_url":"https://api.github.com/users/SergeyChemkayev/following{/other_user}","gists_url":"https://api.github.com/users/SergeyChemkayev/gists{/gist_id}","starred_url":"https://api.github.com/users/SergeyChemkayev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SergeyChemkayev/subscriptions","organizations_url":"https://api.github.com/users/SergeyChemkayev/orgs","repos_url":"https://api.github.com/users/SergeyChemkayev/repos","events_url":"https://api.github.com/users/SergeyChemkayev/events{/privacy}","received_events_url":"https://api.github.com/users/SergeyChemkayev/received_events","type":"User","site_admin":false},"repo":{"id":142533414,"node_id":"MDEwOlJlcG9zaXRvcnkxNDI1MzM0MTQ=","name":"AndroidLearningApp","full_name":"SergeyChemkayev/AndroidLearningApp","private":false,"owner":{"login":"SergeyChemkayev","id":38933953,"node_id":"MDQ6VXNlcjM4OTMzOTUz","avatar_url":"https://avatars1.githubusercontent.com/u/38933953?v=4","gravatar_id":"","url":"https://api.github.com/users/SergeyChemkayev","html_url":"https://github.com/SergeyChemkayev","followers_url":"https://api.github.com/users/SergeyChemkayev/followers","following_url":"https://api.github.com/users/SergeyChemkayev/following{/other_user}","gists_url":"https://api.github.com/users/SergeyChemkayev/gists{/gist_id}","starred_url":"https://api.github.com/users/SergeyChemkayev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SergeyChemkayev/subscriptions","organizations_url":"https://api.github.com/users/SergeyChemkayev/orgs","repos_url":"https://api.github.com/users/SergeyChemkayev/repos","events_url":"https://api.github.com/users/SergeyChemkayev/events{/privacy}","received_events_url":"https://api.github.com/users/SergeyChemkayev/received_events","type":"User","site_admin":false},"html_url":"https://github.com/SergeyChemkayev/AndroidLearningApp","description":null,"fork":false,"url":"https://api.github.com/repos/SergeyChemkayev/AndroidLearningApp","forks_url":"https://api.github.com/repos/SergeyChemkayev/AndroidLearningApp/forks","keys_url":"https://api.github.com/repos/SergeyChemkayev/AndroidLearningApp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SergeyChemkayev/AndroidLearningApp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SergeyChemkayev/AndroidLearningApp/teams","hooks_url":"https://api.github.com/repos/SergeyChemkayev/AndroidLearningApp/hooks","issue_events_url":"https://api.github.com/repos/SergeyChemkayev/AndroidLearningApp/issues/events{/number}","events_url":"https://api.github.com/repos/SergeyChemkayev/AndroidLearningApp/events","assignees_url":"https://api.github.com/repos/SergeyChemkayev/AndroidLearningApp/assignees{/user}","branches_url":"https://api.github.com/repos/SergeyChemkayev/AndroidLearningApp/branches{/branch}","tags_url":"https://api.github.com/repos/SergeyChemkayev/AndroidLearningApp/tags","blobs_url":"https://api.github.com/repos/SergeyChemkayev/AndroidLearningApp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SergeyChemkayev/AndroidLearningApp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SergeyChemkayev/AndroidLearningApp/git/refs{/sha}","trees_url":"https://api.github.com/repos/SergeyChemkayev/AndroidLearningApp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SergeyChemkayev/AndroidLearningApp/statuses/{sha}","languages_url":"https://api.github.com/repos/SergeyChemkayev/AndroidLearningApp/languages","stargazers_url":"https://api.github.com/repos/SergeyChemkayev/AndroidLearningApp/stargazers","contributors_url":"https://api.github.com/repos/SergeyChemkayev/AndroidLearningApp/contributors","subscribers_url":"https://api.github.com/repos/SergeyChemkayev/AndroidLearningApp/subscribers","subscription_url":"https://api.github.com/repos/SergeyChemkayev/AndroidLearningApp/subscription","commits_url":"https://api.github.com/repos/SergeyChemkayev/AndroidLearningApp/commits{/sha}","git_commits_url":"https://api.github.com/repos/SergeyChemkayev/AndroidLearningApp/git/commits{/sha}","comments_url":"https://api.github.com/repos/SergeyChemkayev/AndroidLearningApp/comments{/number}","issue_comment_url":"https://api.github.com/repos/SergeyChemkayev/AndroidLearningApp/issues/comments{/number}","contents_url":"https://api.github.com/repos/SergeyChemkayev/AndroidLearningApp/contents/{+path}","compare_url":"https://api.github.com/repos/SergeyChemkayev/AndroidLearningApp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SergeyChemkayev/AndroidLearningApp/merges","archive_url":"https://api.github.com/repos/SergeyChemkayev/AndroidLearningApp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SergeyChemkayev/AndroidLearningApp/downloads","issues_url":"https://api.github.com/repos/SergeyChemkayev/AndroidLearningApp/issues{/number}","pulls_url":"https://api.github.com/repos/SergeyChemkayev/AndroidLearningApp/pulls{/number}","milestones_url":"https://api.github.com/repos/SergeyChemkayev/AndroidLearningApp/milestones{/number}","notifications_url":"https://api.github.com/repos/SergeyChemkayev/AndroidLearningApp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SergeyChemkayev/AndroidLearningApp/labels{/name}","releases_url":"https://api.github.com/repos/SergeyChemkayev/AndroidLearningApp/releases{/id}","deployments_url":"https://api.github.com/repos/SergeyChemkayev/AndroidLearningApp/deployments","created_at":"2018-07-27T05:49:53Z","updated_at":"2018-11-22T10:26:57Z","pushed_at":"2018-11-23T11:33:52Z","git_url":"git://github.com/SergeyChemkayev/AndroidLearningApp.git","ssh_url":"git@github.com:SergeyChemkayev/AndroidLearningApp.git","clone_url":"https://github.com/SergeyChemkayev/AndroidLearningApp.git","svn_url":"https://github.com/SergeyChemkayev/AndroidLearningApp","homepage":null,"size":257,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"SergeyChemkayev:master","ref":"master","sha":"2be3a6119f8a25bfe6edc1eb13b47eeaed573d24","user":{"login":"SergeyChemkayev","id":38933953,"node_id":"MDQ6VXNlcjM4OTMzOTUz","avatar_url":"https://avatars1.githubusercontent.com/u/38933953?v=4","gravatar_id":"","url":"https://api.github.com/users/SergeyChemkayev","html_url":"https://github.com/SergeyChemkayev","followers_url":"https://api.github.com/users/SergeyChemkayev/followers","following_url":"https://api.github.com/users/SergeyChemkayev/following{/other_user}","gists_url":"https://api.github.com/users/SergeyChemkayev/gists{/gist_id}","starred_url":"https://api.github.com/users/SergeyChemkayev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SergeyChemkayev/subscriptions","organizations_url":"https://api.github.com/users/SergeyChemkayev/orgs","repos_url":"https://api.github.com/users/SergeyChemkayev/repos","events_url":"https://api.github.com/users/SergeyChemkayev/events{/privacy}","received_events_url":"https://api.github.com/users/SergeyChemkayev/received_events","type":"User","site_admin":false},"repo":{"id":142533414,"node_id":"MDEwOlJlcG9zaXRvcnkxNDI1MzM0MTQ=","name":"AndroidLearningApp","full_name":"SergeyChemkayev/AndroidLearningApp","private":false,"owner":{"login":"SergeyChemkayev","id":38933953,"node_id":"MDQ6VXNlcjM4OTMzOTUz","avatar_url":"https://avatars1.githubusercontent.com/u/38933953?v=4","gravatar_id":"","url":"https://api.github.com/users/SergeyChemkayev","html_url":"https://github.com/SergeyChemkayev","followers_url":"https://api.github.com/users/SergeyChemkayev/followers","following_url":"https://api.github.com/users/SergeyChemkayev/following{/other_user}","gists_url":"https://api.github.com/users/SergeyChemkayev/gists{/gist_id}","starred_url":"https://api.github.com/users/SergeyChemkayev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SergeyChemkayev/subscriptions","organizations_url":"https://api.github.com/users/SergeyChemkayev/orgs","repos_url":"https://api.github.com/users/SergeyChemkayev/repos","events_url":"https://api.github.com/users/SergeyChemkayev/events{/privacy}","received_events_url":"https://api.github.com/users/SergeyChemkayev/received_events","type":"User","site_admin":false},"html_url":"https://github.com/SergeyChemkayev/AndroidLearningApp","description":null,"fork":false,"url":"https://api.github.com/repos/SergeyChemkayev/AndroidLearningApp","forks_url":"https://api.github.com/repos/SergeyChemkayev/AndroidLearningApp/forks","keys_url":"https://api.github.com/repos/SergeyChemkayev/AndroidLearningApp/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SergeyChemkayev/AndroidLearningApp/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SergeyChemkayev/AndroidLearningApp/teams","hooks_url":"https://api.github.com/repos/SergeyChemkayev/AndroidLearningApp/hooks","issue_events_url":"https://api.github.com/repos/SergeyChemkayev/AndroidLearningApp/issues/events{/number}","events_url":"https://api.github.com/repos/SergeyChemkayev/AndroidLearningApp/events","assignees_url":"https://api.github.com/repos/SergeyChemkayev/AndroidLearningApp/assignees{/user}","branches_url":"https://api.github.com/repos/SergeyChemkayev/AndroidLearningApp/branches{/branch}","tags_url":"https://api.github.com/repos/SergeyChemkayev/AndroidLearningApp/tags","blobs_url":"https://api.github.com/repos/SergeyChemkayev/AndroidLearningApp/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SergeyChemkayev/AndroidLearningApp/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SergeyChemkayev/AndroidLearningApp/git/refs{/sha}","trees_url":"https://api.github.com/repos/SergeyChemkayev/AndroidLearningApp/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SergeyChemkayev/AndroidLearningApp/statuses/{sha}","languages_url":"https://api.github.com/repos/SergeyChemkayev/AndroidLearningApp/languages","stargazers_url":"https://api.github.com/repos/SergeyChemkayev/AndroidLearningApp/stargazers","contributors_url":"https://api.github.com/repos/SergeyChemkayev/AndroidLearningApp/contributors","subscribers_url":"https://api.github.com/repos/SergeyChemkayev/AndroidLearningApp/subscribers","subscription_url":"https://api.github.com/repos/SergeyChemkayev/AndroidLearningApp/subscription","commits_url":"https://api.github.com/repos/SergeyChemkayev/AndroidLearningApp/commits{/sha}","git_commits_url":"https://api.github.com/repos/SergeyChemkayev/AndroidLearningApp/git/commits{/sha}","comments_url":"https://api.github.com/repos/SergeyChemkayev/AndroidLearningApp/comments{/number}","issue_comment_url":"https://api.github.com/repos/SergeyChemkayev/AndroidLearningApp/issues/comments{/number}","contents_url":"https://api.github.com/repos/SergeyChemkayev/AndroidLearningApp/contents/{+path}","compare_url":"https://api.github.com/repos/SergeyChemkayev/AndroidLearningApp/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SergeyChemkayev/AndroidLearningApp/merges","archive_url":"https://api.github.com/repos/SergeyChemkayev/AndroidLearningApp/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SergeyChemkayev/AndroidLearningApp/downloads","issues_url":"https://api.github.com/repos/SergeyChemkayev/AndroidLearningApp/issues{/number}","pulls_url":"https://api.github.com/repos/SergeyChemkayev/AndroidLearningApp/pulls{/number}","milestones_url":"https://api.github.com/repos/SergeyChemkayev/AndroidLearningApp/milestones{/number}","notifications_url":"https://api.github.com/repos/SergeyChemkayev/AndroidLearningApp/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SergeyChemkayev/AndroidLearningApp/labels{/name}","releases_url":"https://api.github.com/repos/SergeyChemkayev/AndroidLearningApp/releases{/id}","deployments_url":"https://api.github.com/repos/SergeyChemkayev/AndroidLearningApp/deployments","created_at":"2018-07-27T05:49:53Z","updated_at":"2018-11-22T10:26:57Z","pushed_at":"2018-11-23T11:33:52Z","git_url":"git://github.com/SergeyChemkayev/AndroidLearningApp.git","ssh_url":"git@github.com:SergeyChemkayev/AndroidLearningApp.git","clone_url":"https://github.com/SergeyChemkayev/AndroidLearningApp.git","svn_url":"https://github.com/SergeyChemkayev/AndroidLearningApp","homepage":null,"size":257,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SergeyChemkayev/AndroidLearningApp/pulls/11"},"html":{"href":"https://github.com/SergeyChemkayev/AndroidLearningApp/pull/11"},"issue":{"href":"https://api.github.com/repos/SergeyChemkayev/AndroidLearningApp/issues/11"},"comments":{"href":"https://api.github.com/repos/SergeyChemkayev/AndroidLearningApp/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/SergeyChemkayev/AndroidLearningApp/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/SergeyChemkayev/AndroidLearningApp/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SergeyChemkayev/AndroidLearningApp/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/SergeyChemkayev/AndroidLearningApp/statuses/5ee7c96cca0e783058efe0cb83254c92fb62dba5"}},"author_association":"OWNER"}}
{"actor":{"display_login":"SergeyChemkayev"}}