{"action":"created","comment":{"url":"https://api.github.com/repos/konstzv/AndroidAcademyEx2/pulls/comments/228758874","pull_request_review_id":169101593,"id":228758874,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyODc1ODg3NA==","diff_hunk":"@@ -1,34 +1,132 @@\n package com.zagulin.mycard\n \n+import android.annotation.SuppressLint\n import android.content.Intent\n import android.content.res.Configuration\n import android.os.Bundle\n+import android.util.Log\n import android.view.Menu\n import android.view.MenuItem\n import androidx.appcompat.app.AppCompatActivity\n import androidx.recyclerview.widget.GridLayoutManager\n import androidx.recyclerview.widget.LinearLayoutManager\n+import androidx.recyclerview.widget.RecyclerView\n+import io.reactivex.Observable\n+import io.reactivex.android.schedulers.AndroidSchedulers\n+import io.reactivex.disposables.Disposable\n+import io.reactivex.rxkotlin.subscribeBy\n import kotlinx.android.synthetic.main.feed_activity.*\n \n-class FeedActivity : AppCompatActivity(),OnNewsItemClickListener {\n+\n+class FeedActivity : AppCompatActivity(), OnNewsItemClickListener {\n+    companion object {\n+        private const val ITEMS_PER_PAGE = 10\n+        private const val TAG = \"FeedActivity\"\n+    }\n+\n+    private var feedAdapter: FeedAdapter? = null\n+    private var getNewsWithAdsDisposable: Disposable? = null\n+    private var layoutManager: LinearLayoutManager? = null\n+\n+\n+    @Volatile\n+    private var isNewDataLoadingToFeed = false\n+\n     override fun onItemClick(item: NewsItem) {\n-        startActivity(SpecificNewsActivity.intent(this,item))\n+        startActivity(SpecificNewsActivity.intent(this, item))\n     }\n \n     override fun onCreate(savedInstanceState: Bundle?) {\n         super.onCreate(savedInstanceState)\n         setContentView(R.layout.feed_activity)\n         initRecycle()\n+//        populateFeed()\n+        initPagination()\n+    }\n+\n+    @SuppressLint(\"CheckResult\")\n+    private fun initPagination() {\n+        val news = LocalFeedRepository().getNews()","path":"app/src/main/java/com/zagulin/mycard/FeedActivity.kt","position":51,"original_position":51,"commit_id":"2286ea1b0ba9efcf96100be9e76d521c7e1e487e","original_commit_id":"2286ea1b0ba9efcf96100be9e76d521c7e1e487e","user":{"login":"xanderblinov","id":469876,"node_id":"MDQ6VXNlcjQ2OTg3Ng==","avatar_url":"https://avatars3.githubusercontent.com/u/469876?v=4","gravatar_id":"","url":"https://api.github.com/users/xanderblinov","html_url":"https://github.com/xanderblinov","followers_url":"https://api.github.com/users/xanderblinov/followers","following_url":"https://api.github.com/users/xanderblinov/following{/other_user}","gists_url":"https://api.github.com/users/xanderblinov/gists{/gist_id}","starred_url":"https://api.github.com/users/xanderblinov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xanderblinov/subscriptions","organizations_url":"https://api.github.com/users/xanderblinov/orgs","repos_url":"https://api.github.com/users/xanderblinov/repos","events_url":"https://api.github.com/users/xanderblinov/events{/privacy}","received_events_url":"https://api.github.com/users/xanderblinov/received_events","type":"User","site_admin":false},"body":"а что потом с этой переменной делаешь? надо её добавить к CompositeDisposable","created_at":"2018-10-28T18:18:59Z","updated_at":"2018-10-28T18:42:45Z","html_url":"https://github.com/konstzv/AndroidAcademyEx2/pull/4#discussion_r228758874","pull_request_url":"https://api.github.com/repos/konstzv/AndroidAcademyEx2/pulls/4","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/konstzv/AndroidAcademyEx2/pulls/comments/228758874"},"html":{"href":"https://github.com/konstzv/AndroidAcademyEx2/pull/4#discussion_r228758874"},"pull_request":{"href":"https://api.github.com/repos/konstzv/AndroidAcademyEx2/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/konstzv/AndroidAcademyEx2/pulls/4","id":222475875,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIyNDc1ODc1","html_url":"https://github.com/konstzv/AndroidAcademyEx2/pull/4","diff_url":"https://github.com/konstzv/AndroidAcademyEx2/pull/4.diff","patch_url":"https://github.com/konstzv/AndroidAcademyEx2/pull/4.patch","issue_url":"https://api.github.com/repos/konstzv/AndroidAcademyEx2/issues/4","number":4,"state":"open","locked":false,"title":"Homework 4 part 2","user":{"login":"konstzv","id":5062363,"node_id":"MDQ6VXNlcjUwNjIzNjM=","avatar_url":"https://avatars2.githubusercontent.com/u/5062363?v=4","gravatar_id":"","url":"https://api.github.com/users/konstzv","html_url":"https://github.com/konstzv","followers_url":"https://api.github.com/users/konstzv/followers","following_url":"https://api.github.com/users/konstzv/following{/other_user}","gists_url":"https://api.github.com/users/konstzv/gists{/gist_id}","starred_url":"https://api.github.com/users/konstzv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/konstzv/subscriptions","organizations_url":"https://api.github.com/users/konstzv/orgs","repos_url":"https://api.github.com/users/konstzv/repos","events_url":"https://api.github.com/users/konstzv/events{/privacy}","received_events_url":"https://api.github.com/users/konstzv/received_events","type":"User","site_admin":false},"body":"Added new gradle repo","created_at":"2018-10-12T13:58:14Z","updated_at":"2018-10-28T18:42:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3e693d561d463bcbeace9fa433850ed12e0f58fd","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/konstzv/AndroidAcademyEx2/pulls/4/commits","review_comments_url":"https://api.github.com/repos/konstzv/AndroidAcademyEx2/pulls/4/comments","review_comment_url":"https://api.github.com/repos/konstzv/AndroidAcademyEx2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/konstzv/AndroidAcademyEx2/issues/4/comments","statuses_url":"https://api.github.com/repos/konstzv/AndroidAcademyEx2/statuses/2286ea1b0ba9efcf96100be9e76d521c7e1e487e","head":{"label":"konstzv:dev4","ref":"dev4","sha":"2286ea1b0ba9efcf96100be9e76d521c7e1e487e","user":{"login":"konstzv","id":5062363,"node_id":"MDQ6VXNlcjUwNjIzNjM=","avatar_url":"https://avatars2.githubusercontent.com/u/5062363?v=4","gravatar_id":"","url":"https://api.github.com/users/konstzv","html_url":"https://github.com/konstzv","followers_url":"https://api.github.com/users/konstzv/followers","following_url":"https://api.github.com/users/konstzv/following{/other_user}","gists_url":"https://api.github.com/users/konstzv/gists{/gist_id}","starred_url":"https://api.github.com/users/konstzv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/konstzv/subscriptions","organizations_url":"https://api.github.com/users/konstzv/orgs","repos_url":"https://api.github.com/users/konstzv/repos","events_url":"https://api.github.com/users/konstzv/events{/privacy}","received_events_url":"https://api.github.com/users/konstzv/received_events","type":"User","site_admin":false},"repo":{"id":150302922,"node_id":"MDEwOlJlcG9zaXRvcnkxNTAzMDI5MjI=","name":"AndroidAcademyEx2","full_name":"konstzv/AndroidAcademyEx2","private":false,"owner":{"login":"konstzv","id":5062363,"node_id":"MDQ6VXNlcjUwNjIzNjM=","avatar_url":"https://avatars2.githubusercontent.com/u/5062363?v=4","gravatar_id":"","url":"https://api.github.com/users/konstzv","html_url":"https://github.com/konstzv","followers_url":"https://api.github.com/users/konstzv/followers","following_url":"https://api.github.com/users/konstzv/following{/other_user}","gists_url":"https://api.github.com/users/konstzv/gists{/gist_id}","starred_url":"https://api.github.com/users/konstzv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/konstzv/subscriptions","organizations_url":"https://api.github.com/users/konstzv/orgs","repos_url":"https://api.github.com/users/konstzv/repos","events_url":"https://api.github.com/users/konstzv/events{/privacy}","received_events_url":"https://api.github.com/users/konstzv/received_events","type":"User","site_admin":false},"html_url":"https://github.com/konstzv/AndroidAcademyEx2","description":null,"fork":false,"url":"https://api.github.com/repos/konstzv/AndroidAcademyEx2","forks_url":"https://api.github.com/repos/konstzv/AndroidAcademyEx2/forks","keys_url":"https://api.github.com/repos/konstzv/AndroidAcademyEx2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/konstzv/AndroidAcademyEx2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/konstzv/AndroidAcademyEx2/teams","hooks_url":"https://api.github.com/repos/konstzv/AndroidAcademyEx2/hooks","issue_events_url":"https://api.github.com/repos/konstzv/AndroidAcademyEx2/issues/events{/number}","events_url":"https://api.github.com/repos/konstzv/AndroidAcademyEx2/events","assignees_url":"https://api.github.com/repos/konstzv/AndroidAcademyEx2/assignees{/user}","branches_url":"https://api.github.com/repos/konstzv/AndroidAcademyEx2/branches{/branch}","tags_url":"https://api.github.com/repos/konstzv/AndroidAcademyEx2/tags","blobs_url":"https://api.github.com/repos/konstzv/AndroidAcademyEx2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/konstzv/AndroidAcademyEx2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/konstzv/AndroidAcademyEx2/git/refs{/sha}","trees_url":"https://api.github.com/repos/konstzv/AndroidAcademyEx2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/konstzv/AndroidAcademyEx2/statuses/{sha}","languages_url":"https://api.github.com/repos/konstzv/AndroidAcademyEx2/languages","stargazers_url":"https://api.github.com/repos/konstzv/AndroidAcademyEx2/stargazers","contributors_url":"https://api.github.com/repos/konstzv/AndroidAcademyEx2/contributors","subscribers_url":"https://api.github.com/repos/konstzv/AndroidAcademyEx2/subscribers","subscription_url":"https://api.github.com/repos/konstzv/AndroidAcademyEx2/subscription","commits_url":"https://api.github.com/repos/konstzv/AndroidAcademyEx2/commits{/sha}","git_commits_url":"https://api.github.com/repos/konstzv/AndroidAcademyEx2/git/commits{/sha}","comments_url":"https://api.github.com/repos/konstzv/AndroidAcademyEx2/comments{/number}","issue_comment_url":"https://api.github.com/repos/konstzv/AndroidAcademyEx2/issues/comments{/number}","contents_url":"https://api.github.com/repos/konstzv/AndroidAcademyEx2/contents/{+path}","compare_url":"https://api.github.com/repos/konstzv/AndroidAcademyEx2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/konstzv/AndroidAcademyEx2/merges","archive_url":"https://api.github.com/repos/konstzv/AndroidAcademyEx2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/konstzv/AndroidAcademyEx2/downloads","issues_url":"https://api.github.com/repos/konstzv/AndroidAcademyEx2/issues{/number}","pulls_url":"https://api.github.com/repos/konstzv/AndroidAcademyEx2/pulls{/number}","milestones_url":"https://api.github.com/repos/konstzv/AndroidAcademyEx2/milestones{/number}","notifications_url":"https://api.github.com/repos/konstzv/AndroidAcademyEx2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/konstzv/AndroidAcademyEx2/labels{/name}","releases_url":"https://api.github.com/repos/konstzv/AndroidAcademyEx2/releases{/id}","deployments_url":"https://api.github.com/repos/konstzv/AndroidAcademyEx2/deployments","created_at":"2018-09-25T17:21:06Z","updated_at":"2018-10-24T07:33:35Z","pushed_at":"2018-10-24T07:35:38Z","git_url":"git://github.com/konstzv/AndroidAcademyEx2.git","ssh_url":"git@github.com:konstzv/AndroidAcademyEx2.git","clone_url":"https://github.com/konstzv/AndroidAcademyEx2.git","svn_url":"https://github.com/konstzv/AndroidAcademyEx2","homepage":null,"size":440,"stargazers_count":0,"watchers_count":0,"language":"Kotlin","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":"konstzv:dev","ref":"dev","sha":"0b9875ea1ae5edf27b7938eb17baf45e45e6f84c","user":{"login":"konstzv","id":5062363,"node_id":"MDQ6VXNlcjUwNjIzNjM=","avatar_url":"https://avatars2.githubusercontent.com/u/5062363?v=4","gravatar_id":"","url":"https://api.github.com/users/konstzv","html_url":"https://github.com/konstzv","followers_url":"https://api.github.com/users/konstzv/followers","following_url":"https://api.github.com/users/konstzv/following{/other_user}","gists_url":"https://api.github.com/users/konstzv/gists{/gist_id}","starred_url":"https://api.github.com/users/konstzv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/konstzv/subscriptions","organizations_url":"https://api.github.com/users/konstzv/orgs","repos_url":"https://api.github.com/users/konstzv/repos","events_url":"https://api.github.com/users/konstzv/events{/privacy}","received_events_url":"https://api.github.com/users/konstzv/received_events","type":"User","site_admin":false},"repo":{"id":150302922,"node_id":"MDEwOlJlcG9zaXRvcnkxNTAzMDI5MjI=","name":"AndroidAcademyEx2","full_name":"konstzv/AndroidAcademyEx2","private":false,"owner":{"login":"konstzv","id":5062363,"node_id":"MDQ6VXNlcjUwNjIzNjM=","avatar_url":"https://avatars2.githubusercontent.com/u/5062363?v=4","gravatar_id":"","url":"https://api.github.com/users/konstzv","html_url":"https://github.com/konstzv","followers_url":"https://api.github.com/users/konstzv/followers","following_url":"https://api.github.com/users/konstzv/following{/other_user}","gists_url":"https://api.github.com/users/konstzv/gists{/gist_id}","starred_url":"https://api.github.com/users/konstzv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/konstzv/subscriptions","organizations_url":"https://api.github.com/users/konstzv/orgs","repos_url":"https://api.github.com/users/konstzv/repos","events_url":"https://api.github.com/users/konstzv/events{/privacy}","received_events_url":"https://api.github.com/users/konstzv/received_events","type":"User","site_admin":false},"html_url":"https://github.com/konstzv/AndroidAcademyEx2","description":null,"fork":false,"url":"https://api.github.com/repos/konstzv/AndroidAcademyEx2","forks_url":"https://api.github.com/repos/konstzv/AndroidAcademyEx2/forks","keys_url":"https://api.github.com/repos/konstzv/AndroidAcademyEx2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/konstzv/AndroidAcademyEx2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/konstzv/AndroidAcademyEx2/teams","hooks_url":"https://api.github.com/repos/konstzv/AndroidAcademyEx2/hooks","issue_events_url":"https://api.github.com/repos/konstzv/AndroidAcademyEx2/issues/events{/number}","events_url":"https://api.github.com/repos/konstzv/AndroidAcademyEx2/events","assignees_url":"https://api.github.com/repos/konstzv/AndroidAcademyEx2/assignees{/user}","branches_url":"https://api.github.com/repos/konstzv/AndroidAcademyEx2/branches{/branch}","tags_url":"https://api.github.com/repos/konstzv/AndroidAcademyEx2/tags","blobs_url":"https://api.github.com/repos/konstzv/AndroidAcademyEx2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/konstzv/AndroidAcademyEx2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/konstzv/AndroidAcademyEx2/git/refs{/sha}","trees_url":"https://api.github.com/repos/konstzv/AndroidAcademyEx2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/konstzv/AndroidAcademyEx2/statuses/{sha}","languages_url":"https://api.github.com/repos/konstzv/AndroidAcademyEx2/languages","stargazers_url":"https://api.github.com/repos/konstzv/AndroidAcademyEx2/stargazers","contributors_url":"https://api.github.com/repos/konstzv/AndroidAcademyEx2/contributors","subscribers_url":"https://api.github.com/repos/konstzv/AndroidAcademyEx2/subscribers","subscription_url":"https://api.github.com/repos/konstzv/AndroidAcademyEx2/subscription","commits_url":"https://api.github.com/repos/konstzv/AndroidAcademyEx2/commits{/sha}","git_commits_url":"https://api.github.com/repos/konstzv/AndroidAcademyEx2/git/commits{/sha}","comments_url":"https://api.github.com/repos/konstzv/AndroidAcademyEx2/comments{/number}","issue_comment_url":"https://api.github.com/repos/konstzv/AndroidAcademyEx2/issues/comments{/number}","contents_url":"https://api.github.com/repos/konstzv/AndroidAcademyEx2/contents/{+path}","compare_url":"https://api.github.com/repos/konstzv/AndroidAcademyEx2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/konstzv/AndroidAcademyEx2/merges","archive_url":"https://api.github.com/repos/konstzv/AndroidAcademyEx2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/konstzv/AndroidAcademyEx2/downloads","issues_url":"https://api.github.com/repos/konstzv/AndroidAcademyEx2/issues{/number}","pulls_url":"https://api.github.com/repos/konstzv/AndroidAcademyEx2/pulls{/number}","milestones_url":"https://api.github.com/repos/konstzv/AndroidAcademyEx2/milestones{/number}","notifications_url":"https://api.github.com/repos/konstzv/AndroidAcademyEx2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/konstzv/AndroidAcademyEx2/labels{/name}","releases_url":"https://api.github.com/repos/konstzv/AndroidAcademyEx2/releases{/id}","deployments_url":"https://api.github.com/repos/konstzv/AndroidAcademyEx2/deployments","created_at":"2018-09-25T17:21:06Z","updated_at":"2018-10-24T07:33:35Z","pushed_at":"2018-10-24T07:35:38Z","git_url":"git://github.com/konstzv/AndroidAcademyEx2.git","ssh_url":"git@github.com:konstzv/AndroidAcademyEx2.git","clone_url":"https://github.com/konstzv/AndroidAcademyEx2.git","svn_url":"https://github.com/konstzv/AndroidAcademyEx2","homepage":null,"size":440,"stargazers_count":0,"watchers_count":0,"language":"Kotlin","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/konstzv/AndroidAcademyEx2/pulls/4"},"html":{"href":"https://github.com/konstzv/AndroidAcademyEx2/pull/4"},"issue":{"href":"https://api.github.com/repos/konstzv/AndroidAcademyEx2/issues/4"},"comments":{"href":"https://api.github.com/repos/konstzv/AndroidAcademyEx2/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/konstzv/AndroidAcademyEx2/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/konstzv/AndroidAcademyEx2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/konstzv/AndroidAcademyEx2/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/konstzv/AndroidAcademyEx2/statuses/2286ea1b0ba9efcf96100be9e76d521c7e1e487e"}},"author_association":"OWNER"}}
{"actor":{"display_login":"xanderblinov"}}