{"action":"created","comment":{"url":"https://api.github.com/repos/NailShaykhrazievItis/LessonThree/pulls/comments/187813343","pull_request_review_id":119666714,"id":187813343,"diff_hunk":"@@ -0,0 +1,70 @@\n+package com.itis.android.lessonmvvm.ui\n+\n+import android.content.Intent\n+import android.os.Bundle\n+import android.support.v4.view.GravityCompat\n+import android.support.v7.app.ActionBarDrawerToggle\n+import android.support.v7.app.AppCompatActivity\n+import android.support.v7.widget.Toolbar\n+import com.itis.android.lessonmvvm.R\n+import kotlinx.android.synthetic.main.activity_base.*\n+\n+\n+open class BaseActivity : AppCompatActivity() {\n+\n+    override fun onCreate(savedInstanceState: Bundle?) {\n+        super.onCreate(savedInstanceState)\n+        setContentView(R.layout.activity_base)\n+    }\n+\n+    override fun onBackPressed() {\n+        if (drawer_layout.isDrawerOpen(GravityCompat.START)) {\n+            drawer_layout.closeDrawer(GravityCompat.START)\n+        } else {\n+            super.onBackPressed()\n+        }\n+    }\n+\n+    protected fun supportActionBar(toolbar: Toolbar) {\n+        setSupportActionBar(toolbar)\n+        initNavigationDrawer(toolbar)\n+    }\n+\n+    protected fun setBackArrow(toolbar: Toolbar) {\n+        val actionBar = supportActionBar\n+        actionBar?.let {\n+            actionBar.setDisplayHomeAsUpEnabled(true)\n+            actionBar.setDisplayShowHomeEnabled(true)\n+            toolbar.setNavigationOnClickListener { v -> onBackPressed() }\n+        }\n+    }\n+\n+    private fun initNavigationDrawer(toolbar: Toolbar) {\n+        nav_view.setNavigationItemSelectedListener({ menuItem ->","path":"app/src/main/java/com/itis/android/lessonmvvm/ui/BaseActivity.kt","position":43,"original_position":43,"commit_id":"08fe08652abc766c8fe039b0cd125458a3b4c147","original_commit_id":"08fe08652abc766c8fe039b0cd125458a3b4c147","user":{"login":"NailShaykhrazievItis","id":36369179,"avatar_url":"https://avatars0.githubusercontent.com/u/36369179?v=4","gravatar_id":"","url":"https://api.github.com/users/NailShaykhrazievItis","html_url":"https://github.com/NailShaykhrazievItis","followers_url":"https://api.github.com/users/NailShaykhrazievItis/followers","following_url":"https://api.github.com/users/NailShaykhrazievItis/following{/other_user}","gists_url":"https://api.github.com/users/NailShaykhrazievItis/gists{/gist_id}","starred_url":"https://api.github.com/users/NailShaykhrazievItis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NailShaykhrazievItis/subscriptions","organizations_url":"https://api.github.com/users/NailShaykhrazievItis/orgs","repos_url":"https://api.github.com/users/NailShaykhrazievItis/repos","events_url":"https://api.github.com/users/NailShaykhrazievItis/events{/privacy}","received_events_url":"https://api.github.com/users/NailShaykhrazievItis/received_events","type":"User","site_admin":false},"body":"Думаю можно просто лямбду, без круглых скобок","created_at":"2018-05-13T21:07:16Z","updated_at":"2018-05-13T21:16:14Z","html_url":"https://github.com/NailShaykhrazievItis/LessonThree/pull/1#discussion_r187813343","pull_request_url":"https://api.github.com/repos/NailShaykhrazievItis/LessonThree/pulls/1","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/NailShaykhrazievItis/LessonThree/pulls/comments/187813343"},"html":{"href":"https://github.com/NailShaykhrazievItis/LessonThree/pull/1#discussion_r187813343"},"pull_request":{"href":"https://api.github.com/repos/NailShaykhrazievItis/LessonThree/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/NailShaykhrazievItis/LessonThree/pulls/1","id":187676367,"html_url":"https://github.com/NailShaykhrazievItis/LessonThree/pull/1","diff_url":"https://github.com/NailShaykhrazievItis/LessonThree/pull/1.diff","patch_url":"https://github.com/NailShaykhrazievItis/LessonThree/pull/1.patch","issue_url":"https://api.github.com/repos/NailShaykhrazievItis/LessonThree/issues/1","number":1,"state":"open","locked":false,"title":"HW9 Шакиров и Хайрутдинов ","user":{"login":"Alm7z","id":22294597,"avatar_url":"https://avatars1.githubusercontent.com/u/22294597?v=4","gravatar_id":"","url":"https://api.github.com/users/Alm7z","html_url":"https://github.com/Alm7z","followers_url":"https://api.github.com/users/Alm7z/followers","following_url":"https://api.github.com/users/Alm7z/following{/other_user}","gists_url":"https://api.github.com/users/Alm7z/gists{/gist_id}","starred_url":"https://api.github.com/users/Alm7z/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Alm7z/subscriptions","organizations_url":"https://api.github.com/users/Alm7z/orgs","repos_url":"https://api.github.com/users/Alm7z/repos","events_url":"https://api.github.com/users/Alm7z/events{/privacy}","received_events_url":"https://api.github.com/users/Alm7z/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-05-13T15:39:47Z","updated_at":"2018-05-13T21:16:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"02e0c7819ae35ab9a5575c5bc58ca111259dc045","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/NailShaykhrazievItis/LessonThree/pulls/1/commits","review_comments_url":"https://api.github.com/repos/NailShaykhrazievItis/LessonThree/pulls/1/comments","review_comment_url":"https://api.github.com/repos/NailShaykhrazievItis/LessonThree/pulls/comments{/number}","comments_url":"https://api.github.com/repos/NailShaykhrazievItis/LessonThree/issues/1/comments","statuses_url":"https://api.github.com/repos/NailShaykhrazievItis/LessonThree/statuses/08fe08652abc766c8fe039b0cd125458a3b4c147","head":{"label":"Alm7z:master","ref":"master","sha":"08fe08652abc766c8fe039b0cd125458a3b4c147","user":{"login":"Alm7z","id":22294597,"avatar_url":"https://avatars1.githubusercontent.com/u/22294597?v=4","gravatar_id":"","url":"https://api.github.com/users/Alm7z","html_url":"https://github.com/Alm7z","followers_url":"https://api.github.com/users/Alm7z/followers","following_url":"https://api.github.com/users/Alm7z/following{/other_user}","gists_url":"https://api.github.com/users/Alm7z/gists{/gist_id}","starred_url":"https://api.github.com/users/Alm7z/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Alm7z/subscriptions","organizations_url":"https://api.github.com/users/Alm7z/orgs","repos_url":"https://api.github.com/users/Alm7z/repos","events_url":"https://api.github.com/users/Alm7z/events{/privacy}","received_events_url":"https://api.github.com/users/Alm7z/received_events","type":"User","site_admin":false},"repo":{"id":132628761,"name":"LessonThree","full_name":"Alm7z/LessonThree","owner":{"login":"Alm7z","id":22294597,"avatar_url":"https://avatars1.githubusercontent.com/u/22294597?v=4","gravatar_id":"","url":"https://api.github.com/users/Alm7z","html_url":"https://github.com/Alm7z","followers_url":"https://api.github.com/users/Alm7z/followers","following_url":"https://api.github.com/users/Alm7z/following{/other_user}","gists_url":"https://api.github.com/users/Alm7z/gists{/gist_id}","starred_url":"https://api.github.com/users/Alm7z/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Alm7z/subscriptions","organizations_url":"https://api.github.com/users/Alm7z/orgs","repos_url":"https://api.github.com/users/Alm7z/repos","events_url":"https://api.github.com/users/Alm7z/events{/privacy}","received_events_url":"https://api.github.com/users/Alm7z/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Alm7z/LessonThree","description":null,"fork":true,"url":"https://api.github.com/repos/Alm7z/LessonThree","forks_url":"https://api.github.com/repos/Alm7z/LessonThree/forks","keys_url":"https://api.github.com/repos/Alm7z/LessonThree/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Alm7z/LessonThree/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Alm7z/LessonThree/teams","hooks_url":"https://api.github.com/repos/Alm7z/LessonThree/hooks","issue_events_url":"https://api.github.com/repos/Alm7z/LessonThree/issues/events{/number}","events_url":"https://api.github.com/repos/Alm7z/LessonThree/events","assignees_url":"https://api.github.com/repos/Alm7z/LessonThree/assignees{/user}","branches_url":"https://api.github.com/repos/Alm7z/LessonThree/branches{/branch}","tags_url":"https://api.github.com/repos/Alm7z/LessonThree/tags","blobs_url":"https://api.github.com/repos/Alm7z/LessonThree/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Alm7z/LessonThree/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Alm7z/LessonThree/git/refs{/sha}","trees_url":"https://api.github.com/repos/Alm7z/LessonThree/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Alm7z/LessonThree/statuses/{sha}","languages_url":"https://api.github.com/repos/Alm7z/LessonThree/languages","stargazers_url":"https://api.github.com/repos/Alm7z/LessonThree/stargazers","contributors_url":"https://api.github.com/repos/Alm7z/LessonThree/contributors","subscribers_url":"https://api.github.com/repos/Alm7z/LessonThree/subscribers","subscription_url":"https://api.github.com/repos/Alm7z/LessonThree/subscription","commits_url":"https://api.github.com/repos/Alm7z/LessonThree/commits{/sha}","git_commits_url":"https://api.github.com/repos/Alm7z/LessonThree/git/commits{/sha}","comments_url":"https://api.github.com/repos/Alm7z/LessonThree/comments{/number}","issue_comment_url":"https://api.github.com/repos/Alm7z/LessonThree/issues/comments{/number}","contents_url":"https://api.github.com/repos/Alm7z/LessonThree/contents/{+path}","compare_url":"https://api.github.com/repos/Alm7z/LessonThree/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Alm7z/LessonThree/merges","archive_url":"https://api.github.com/repos/Alm7z/LessonThree/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Alm7z/LessonThree/downloads","issues_url":"https://api.github.com/repos/Alm7z/LessonThree/issues{/number}","pulls_url":"https://api.github.com/repos/Alm7z/LessonThree/pulls{/number}","milestones_url":"https://api.github.com/repos/Alm7z/LessonThree/milestones{/number}","notifications_url":"https://api.github.com/repos/Alm7z/LessonThree/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Alm7z/LessonThree/labels{/name}","releases_url":"https://api.github.com/repos/Alm7z/LessonThree/releases{/id}","deployments_url":"https://api.github.com/repos/Alm7z/LessonThree/deployments","created_at":"2018-05-08T15:27:17Z","updated_at":"2018-05-13T15:38:14Z","pushed_at":"2018-05-13T15:38:12Z","git_url":"git://github.com/Alm7z/LessonThree.git","ssh_url":"git@github.com:Alm7z/LessonThree.git","clone_url":"https://github.com/Alm7z/LessonThree.git","svn_url":"https://github.com/Alm7z/LessonThree","homepage":null,"size":459,"stargazers_count":0,"watchers_count":0,"language":"Kotlin","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"NailShaykhrazievItis:master","ref":"master","sha":"27e697d04fee3e26fa9a2817fdf502251a536a05","user":{"login":"NailShaykhrazievItis","id":36369179,"avatar_url":"https://avatars0.githubusercontent.com/u/36369179?v=4","gravatar_id":"","url":"https://api.github.com/users/NailShaykhrazievItis","html_url":"https://github.com/NailShaykhrazievItis","followers_url":"https://api.github.com/users/NailShaykhrazievItis/followers","following_url":"https://api.github.com/users/NailShaykhrazievItis/following{/other_user}","gists_url":"https://api.github.com/users/NailShaykhrazievItis/gists{/gist_id}","starred_url":"https://api.github.com/users/NailShaykhrazievItis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NailShaykhrazievItis/subscriptions","organizations_url":"https://api.github.com/users/NailShaykhrazievItis/orgs","repos_url":"https://api.github.com/users/NailShaykhrazievItis/repos","events_url":"https://api.github.com/users/NailShaykhrazievItis/events{/privacy}","received_events_url":"https://api.github.com/users/NailShaykhrazievItis/received_events","type":"User","site_admin":false},"repo":{"id":129638373,"name":"LessonThree","full_name":"NailShaykhrazievItis/LessonThree","owner":{"login":"NailShaykhrazievItis","id":36369179,"avatar_url":"https://avatars0.githubusercontent.com/u/36369179?v=4","gravatar_id":"","url":"https://api.github.com/users/NailShaykhrazievItis","html_url":"https://github.com/NailShaykhrazievItis","followers_url":"https://api.github.com/users/NailShaykhrazievItis/followers","following_url":"https://api.github.com/users/NailShaykhrazievItis/following{/other_user}","gists_url":"https://api.github.com/users/NailShaykhrazievItis/gists{/gist_id}","starred_url":"https://api.github.com/users/NailShaykhrazievItis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NailShaykhrazievItis/subscriptions","organizations_url":"https://api.github.com/users/NailShaykhrazievItis/orgs","repos_url":"https://api.github.com/users/NailShaykhrazievItis/repos","events_url":"https://api.github.com/users/NailShaykhrazievItis/events{/privacy}","received_events_url":"https://api.github.com/users/NailShaykhrazievItis/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/NailShaykhrazievItis/LessonThree","description":null,"fork":false,"url":"https://api.github.com/repos/NailShaykhrazievItis/LessonThree","forks_url":"https://api.github.com/repos/NailShaykhrazievItis/LessonThree/forks","keys_url":"https://api.github.com/repos/NailShaykhrazievItis/LessonThree/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NailShaykhrazievItis/LessonThree/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NailShaykhrazievItis/LessonThree/teams","hooks_url":"https://api.github.com/repos/NailShaykhrazievItis/LessonThree/hooks","issue_events_url":"https://api.github.com/repos/NailShaykhrazievItis/LessonThree/issues/events{/number}","events_url":"https://api.github.com/repos/NailShaykhrazievItis/LessonThree/events","assignees_url":"https://api.github.com/repos/NailShaykhrazievItis/LessonThree/assignees{/user}","branches_url":"https://api.github.com/repos/NailShaykhrazievItis/LessonThree/branches{/branch}","tags_url":"https://api.github.com/repos/NailShaykhrazievItis/LessonThree/tags","blobs_url":"https://api.github.com/repos/NailShaykhrazievItis/LessonThree/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NailShaykhrazievItis/LessonThree/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NailShaykhrazievItis/LessonThree/git/refs{/sha}","trees_url":"https://api.github.com/repos/NailShaykhrazievItis/LessonThree/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NailShaykhrazievItis/LessonThree/statuses/{sha}","languages_url":"https://api.github.com/repos/NailShaykhrazievItis/LessonThree/languages","stargazers_url":"https://api.github.com/repos/NailShaykhrazievItis/LessonThree/stargazers","contributors_url":"https://api.github.com/repos/NailShaykhrazievItis/LessonThree/contributors","subscribers_url":"https://api.github.com/repos/NailShaykhrazievItis/LessonThree/subscribers","subscription_url":"https://api.github.com/repos/NailShaykhrazievItis/LessonThree/subscription","commits_url":"https://api.github.com/repos/NailShaykhrazievItis/LessonThree/commits{/sha}","git_commits_url":"https://api.github.com/repos/NailShaykhrazievItis/LessonThree/git/commits{/sha}","comments_url":"https://api.github.com/repos/NailShaykhrazievItis/LessonThree/comments{/number}","issue_comment_url":"https://api.github.com/repos/NailShaykhrazievItis/LessonThree/issues/comments{/number}","contents_url":"https://api.github.com/repos/NailShaykhrazievItis/LessonThree/contents/{+path}","compare_url":"https://api.github.com/repos/NailShaykhrazievItis/LessonThree/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NailShaykhrazievItis/LessonThree/merges","archive_url":"https://api.github.com/repos/NailShaykhrazievItis/LessonThree/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NailShaykhrazievItis/LessonThree/downloads","issues_url":"https://api.github.com/repos/NailShaykhrazievItis/LessonThree/issues{/number}","pulls_url":"https://api.github.com/repos/NailShaykhrazievItis/LessonThree/pulls{/number}","milestones_url":"https://api.github.com/repos/NailShaykhrazievItis/LessonThree/milestones{/number}","notifications_url":"https://api.github.com/repos/NailShaykhrazievItis/LessonThree/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NailShaykhrazievItis/LessonThree/labels{/name}","releases_url":"https://api.github.com/repos/NailShaykhrazievItis/LessonThree/releases{/id}","deployments_url":"https://api.github.com/repos/NailShaykhrazievItis/LessonThree/deployments","created_at":"2018-04-15T18:24:01Z","updated_at":"2018-05-06T23:05:18Z","pushed_at":"2018-05-13T15:39:48Z","git_url":"git://github.com/NailShaykhrazievItis/LessonThree.git","ssh_url":"git@github.com:NailShaykhrazievItis/LessonThree.git","clone_url":"https://github.com/NailShaykhrazievItis/LessonThree.git","svn_url":"https://github.com/NailShaykhrazievItis/LessonThree","homepage":null,"size":445,"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":3,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":3,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/NailShaykhrazievItis/LessonThree/pulls/1"},"html":{"href":"https://github.com/NailShaykhrazievItis/LessonThree/pull/1"},"issue":{"href":"https://api.github.com/repos/NailShaykhrazievItis/LessonThree/issues/1"},"comments":{"href":"https://api.github.com/repos/NailShaykhrazievItis/LessonThree/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/NailShaykhrazievItis/LessonThree/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/NailShaykhrazievItis/LessonThree/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/NailShaykhrazievItis/LessonThree/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/NailShaykhrazievItis/LessonThree/statuses/08fe08652abc766c8fe039b0cd125458a3b4c147"}},"author_association":"NONE"}}
{"actor":{"display_login":"NailShaykhrazievItis"}}