{"action":"created","comment":{"url":"https://api.github.com/repos/JakeWharton/RxBinding/pulls/comments/49213315","id":49213315,"diff_hunk":"@@ -0,0 +1,40 @@\n+package com.jakewharton.rxbinding.support.v7.widget;\n+\n+import android.support.v7.widget.ActionMenuView;\n+import android.view.MenuItem;\n+\n+import rx.Observable;\n+import rx.Subscriber;\n+import rx.android.MainThreadSubscription;\n+\n+import static com.jakewharton.rxbinding.internal.Preconditions.checkUiThread;\n+\n+public final class ActionMenuViewItemClickOnSubscribe implements Observable.OnSubscribe<MenuItem> {\n+    final ActionMenuView view;\n+\n+    ActionMenuViewItemClickOnSubscribe(ActionMenuView view) {\n+        this.view = view;\n+    }\n+\n+    @Override public void call(final Subscriber<? super MenuItem> subscriber) {\n+        checkUiThread();\n+\n+        ActionMenuView.OnMenuItemClickListener listener =\n+                new ActionMenuView.OnMenuItemClickListener() {\n+            @Override public boolean onMenuItemClick(MenuItem item) {\n+                if (!subscriber.isUnsubscribed()) {\n+                    subscriber.onNext(item);\n+                }\n+                return true;\n+            }\n+        };\n+        view.setOnMenuItemClickListener(listener);\n+\n+        subscriber.add(new MainThreadSubscription() {\n+            @Override\n+            protected void onUnsubscribe() {\n+                view.setOnMenuItemClickListener(null);\n+            }\n+        });\n+    }","path":"rxbinding-appcompat-v7/src/main/java/com/jakewharton/rxbinding/support/v7/widget/ActionMenuViewItemClickOnSubscribe.java","position":39,"original_position":39,"commit_id":"d14c70efe18fb952b7f2f0111389084ba67fd00b","original_commit_id":"d14c70efe18fb952b7f2f0111389084ba67fd00b","user":{"login":"JakeWharton","id":66577,"avatar_url":"https://avatars.githubusercontent.com/u/66577?v=3","gravatar_id":"","url":"https://api.github.com/users/JakeWharton","html_url":"https://github.com/JakeWharton","followers_url":"https://api.github.com/users/JakeWharton/followers","following_url":"https://api.github.com/users/JakeWharton/following{/other_user}","gists_url":"https://api.github.com/users/JakeWharton/gists{/gist_id}","starred_url":"https://api.github.com/users/JakeWharton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JakeWharton/subscriptions","organizations_url":"https://api.github.com/users/JakeWharton/orgs","repos_url":"https://api.github.com/users/JakeWharton/repos","events_url":"https://api.github.com/users/JakeWharton/events{/privacy}","received_events_url":"https://api.github.com/users/JakeWharton/received_events","type":"User","site_admin":false},"body":"This file should be indented with two spaces, not four.","created_at":"2016-01-08T17:23:27Z","updated_at":"2016-01-08T17:23:27Z","html_url":"https://github.com/JakeWharton/RxBinding/pull/211#discussion_r49213315","pull_request_url":"https://api.github.com/repos/JakeWharton/RxBinding/pulls/211","_links":{"self":{"href":"https://api.github.com/repos/JakeWharton/RxBinding/pulls/comments/49213315"},"html":{"href":"https://github.com/JakeWharton/RxBinding/pull/211#discussion_r49213315"},"pull_request":{"href":"https://api.github.com/repos/JakeWharton/RxBinding/pulls/211"}}},"pull_request":{"url":"https://api.github.com/repos/JakeWharton/RxBinding/pulls/211","id":55435603,"html_url":"https://github.com/JakeWharton/RxBinding/pull/211","diff_url":"https://github.com/JakeWharton/RxBinding/pull/211.diff","patch_url":"https://github.com/JakeWharton/RxBinding/pull/211.patch","issue_url":"https://api.github.com/repos/JakeWharton/RxBinding/issues/211","number":211,"state":"open","locked":false,"title":"Add appcompat-v7 ActionMenuView bindings","user":{"login":"dlackty","id":14349,"avatar_url":"https://avatars.githubusercontent.com/u/14349?v=3","gravatar_id":"","url":"https://api.github.com/users/dlackty","html_url":"https://github.com/dlackty","followers_url":"https://api.github.com/users/dlackty/followers","following_url":"https://api.github.com/users/dlackty/following{/other_user}","gists_url":"https://api.github.com/users/dlackty/gists{/gist_id}","starred_url":"https://api.github.com/users/dlackty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dlackty/subscriptions","organizations_url":"https://api.github.com/users/dlackty/orgs","repos_url":"https://api.github.com/users/dlackty/repos","events_url":"https://api.github.com/users/dlackty/events{/privacy}","received_events_url":"https://api.github.com/users/dlackty/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-01-08T08:23:15Z","updated_at":"2016-01-08T17:23:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9869e790dea95ac6d2a1ae8a769367d604e04f6e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/JakeWharton/RxBinding/pulls/211/commits","review_comments_url":"https://api.github.com/repos/JakeWharton/RxBinding/pulls/211/comments","review_comment_url":"https://api.github.com/repos/JakeWharton/RxBinding/pulls/comments{/number}","comments_url":"https://api.github.com/repos/JakeWharton/RxBinding/issues/211/comments","statuses_url":"https://api.github.com/repos/JakeWharton/RxBinding/statuses/d14c70efe18fb952b7f2f0111389084ba67fd00b","head":{"label":"dlackty:action-menu-view","ref":"action-menu-view","sha":"d14c70efe18fb952b7f2f0111389084ba67fd00b","user":{"login":"dlackty","id":14349,"avatar_url":"https://avatars.githubusercontent.com/u/14349?v=3","gravatar_id":"","url":"https://api.github.com/users/dlackty","html_url":"https://github.com/dlackty","followers_url":"https://api.github.com/users/dlackty/followers","following_url":"https://api.github.com/users/dlackty/following{/other_user}","gists_url":"https://api.github.com/users/dlackty/gists{/gist_id}","starred_url":"https://api.github.com/users/dlackty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dlackty/subscriptions","organizations_url":"https://api.github.com/users/dlackty/orgs","repos_url":"https://api.github.com/users/dlackty/repos","events_url":"https://api.github.com/users/dlackty/events{/privacy}","received_events_url":"https://api.github.com/users/dlackty/received_events","type":"User","site_admin":false},"repo":{"id":49259511,"name":"RxBinding","full_name":"dlackty/RxBinding","owner":{"login":"dlackty","id":14349,"avatar_url":"https://avatars.githubusercontent.com/u/14349?v=3","gravatar_id":"","url":"https://api.github.com/users/dlackty","html_url":"https://github.com/dlackty","followers_url":"https://api.github.com/users/dlackty/followers","following_url":"https://api.github.com/users/dlackty/following{/other_user}","gists_url":"https://api.github.com/users/dlackty/gists{/gist_id}","starred_url":"https://api.github.com/users/dlackty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dlackty/subscriptions","organizations_url":"https://api.github.com/users/dlackty/orgs","repos_url":"https://api.github.com/users/dlackty/repos","events_url":"https://api.github.com/users/dlackty/events{/privacy}","received_events_url":"https://api.github.com/users/dlackty/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dlackty/RxBinding","description":"RxJava binding APIs for Android's UI widgets.","fork":true,"url":"https://api.github.com/repos/dlackty/RxBinding","forks_url":"https://api.github.com/repos/dlackty/RxBinding/forks","keys_url":"https://api.github.com/repos/dlackty/RxBinding/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dlackty/RxBinding/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dlackty/RxBinding/teams","hooks_url":"https://api.github.com/repos/dlackty/RxBinding/hooks","issue_events_url":"https://api.github.com/repos/dlackty/RxBinding/issues/events{/number}","events_url":"https://api.github.com/repos/dlackty/RxBinding/events","assignees_url":"https://api.github.com/repos/dlackty/RxBinding/assignees{/user}","branches_url":"https://api.github.com/repos/dlackty/RxBinding/branches{/branch}","tags_url":"https://api.github.com/repos/dlackty/RxBinding/tags","blobs_url":"https://api.github.com/repos/dlackty/RxBinding/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dlackty/RxBinding/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dlackty/RxBinding/git/refs{/sha}","trees_url":"https://api.github.com/repos/dlackty/RxBinding/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dlackty/RxBinding/statuses/{sha}","languages_url":"https://api.github.com/repos/dlackty/RxBinding/languages","stargazers_url":"https://api.github.com/repos/dlackty/RxBinding/stargazers","contributors_url":"https://api.github.com/repos/dlackty/RxBinding/contributors","subscribers_url":"https://api.github.com/repos/dlackty/RxBinding/subscribers","subscription_url":"https://api.github.com/repos/dlackty/RxBinding/subscription","commits_url":"https://api.github.com/repos/dlackty/RxBinding/commits{/sha}","git_commits_url":"https://api.github.com/repos/dlackty/RxBinding/git/commits{/sha}","comments_url":"https://api.github.com/repos/dlackty/RxBinding/comments{/number}","issue_comment_url":"https://api.github.com/repos/dlackty/RxBinding/issues/comments{/number}","contents_url":"https://api.github.com/repos/dlackty/RxBinding/contents/{+path}","compare_url":"https://api.github.com/repos/dlackty/RxBinding/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dlackty/RxBinding/merges","archive_url":"https://api.github.com/repos/dlackty/RxBinding/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dlackty/RxBinding/downloads","issues_url":"https://api.github.com/repos/dlackty/RxBinding/issues{/number}","pulls_url":"https://api.github.com/repos/dlackty/RxBinding/pulls{/number}","milestones_url":"https://api.github.com/repos/dlackty/RxBinding/milestones{/number}","notifications_url":"https://api.github.com/repos/dlackty/RxBinding/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dlackty/RxBinding/labels{/name}","releases_url":"https://api.github.com/repos/dlackty/RxBinding/releases{/id}","created_at":"2016-01-08T08:21:51Z","updated_at":"2016-01-08T08:21:52Z","pushed_at":"2016-01-08T08:21:58Z","git_url":"git://github.com/dlackty/RxBinding.git","ssh_url":"git@github.com:dlackty/RxBinding.git","clone_url":"https://github.com/dlackty/RxBinding.git","svn_url":"https://github.com/dlackty/RxBinding","homepage":"","size":684,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"JakeWharton:master","ref":"master","sha":"bde8867238b7980cda188aea312e2362c794eb89","user":{"login":"JakeWharton","id":66577,"avatar_url":"https://avatars.githubusercontent.com/u/66577?v=3","gravatar_id":"","url":"https://api.github.com/users/JakeWharton","html_url":"https://github.com/JakeWharton","followers_url":"https://api.github.com/users/JakeWharton/followers","following_url":"https://api.github.com/users/JakeWharton/following{/other_user}","gists_url":"https://api.github.com/users/JakeWharton/gists{/gist_id}","starred_url":"https://api.github.com/users/JakeWharton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JakeWharton/subscriptions","organizations_url":"https://api.github.com/users/JakeWharton/orgs","repos_url":"https://api.github.com/users/JakeWharton/repos","events_url":"https://api.github.com/users/JakeWharton/events{/privacy}","received_events_url":"https://api.github.com/users/JakeWharton/received_events","type":"User","site_admin":false},"repo":{"id":32775739,"name":"RxBinding","full_name":"JakeWharton/RxBinding","owner":{"login":"JakeWharton","id":66577,"avatar_url":"https://avatars.githubusercontent.com/u/66577?v=3","gravatar_id":"","url":"https://api.github.com/users/JakeWharton","html_url":"https://github.com/JakeWharton","followers_url":"https://api.github.com/users/JakeWharton/followers","following_url":"https://api.github.com/users/JakeWharton/following{/other_user}","gists_url":"https://api.github.com/users/JakeWharton/gists{/gist_id}","starred_url":"https://api.github.com/users/JakeWharton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JakeWharton/subscriptions","organizations_url":"https://api.github.com/users/JakeWharton/orgs","repos_url":"https://api.github.com/users/JakeWharton/repos","events_url":"https://api.github.com/users/JakeWharton/events{/privacy}","received_events_url":"https://api.github.com/users/JakeWharton/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/JakeWharton/RxBinding","description":"RxJava binding APIs for Android's UI widgets.","fork":false,"url":"https://api.github.com/repos/JakeWharton/RxBinding","forks_url":"https://api.github.com/repos/JakeWharton/RxBinding/forks","keys_url":"https://api.github.com/repos/JakeWharton/RxBinding/keys{/key_id}","collaborators_url":"https://api.github.com/repos/JakeWharton/RxBinding/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/JakeWharton/RxBinding/teams","hooks_url":"https://api.github.com/repos/JakeWharton/RxBinding/hooks","issue_events_url":"https://api.github.com/repos/JakeWharton/RxBinding/issues/events{/number}","events_url":"https://api.github.com/repos/JakeWharton/RxBinding/events","assignees_url":"https://api.github.com/repos/JakeWharton/RxBinding/assignees{/user}","branches_url":"https://api.github.com/repos/JakeWharton/RxBinding/branches{/branch}","tags_url":"https://api.github.com/repos/JakeWharton/RxBinding/tags","blobs_url":"https://api.github.com/repos/JakeWharton/RxBinding/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/JakeWharton/RxBinding/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/JakeWharton/RxBinding/git/refs{/sha}","trees_url":"https://api.github.com/repos/JakeWharton/RxBinding/git/trees{/sha}","statuses_url":"https://api.github.com/repos/JakeWharton/RxBinding/statuses/{sha}","languages_url":"https://api.github.com/repos/JakeWharton/RxBinding/languages","stargazers_url":"https://api.github.com/repos/JakeWharton/RxBinding/stargazers","contributors_url":"https://api.github.com/repos/JakeWharton/RxBinding/contributors","subscribers_url":"https://api.github.com/repos/JakeWharton/RxBinding/subscribers","subscription_url":"https://api.github.com/repos/JakeWharton/RxBinding/subscription","commits_url":"https://api.github.com/repos/JakeWharton/RxBinding/commits{/sha}","git_commits_url":"https://api.github.com/repos/JakeWharton/RxBinding/git/commits{/sha}","comments_url":"https://api.github.com/repos/JakeWharton/RxBinding/comments{/number}","issue_comment_url":"https://api.github.com/repos/JakeWharton/RxBinding/issues/comments{/number}","contents_url":"https://api.github.com/repos/JakeWharton/RxBinding/contents/{+path}","compare_url":"https://api.github.com/repos/JakeWharton/RxBinding/compare/{base}...{head}","merges_url":"https://api.github.com/repos/JakeWharton/RxBinding/merges","archive_url":"https://api.github.com/repos/JakeWharton/RxBinding/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/JakeWharton/RxBinding/downloads","issues_url":"https://api.github.com/repos/JakeWharton/RxBinding/issues{/number}","pulls_url":"https://api.github.com/repos/JakeWharton/RxBinding/pulls{/number}","milestones_url":"https://api.github.com/repos/JakeWharton/RxBinding/milestones{/number}","notifications_url":"https://api.github.com/repos/JakeWharton/RxBinding/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/JakeWharton/RxBinding/labels{/name}","releases_url":"https://api.github.com/repos/JakeWharton/RxBinding/releases{/id}","created_at":"2015-03-24T04:17:24Z","updated_at":"2016-01-08T15:00:35Z","pushed_at":"2016-01-08T08:23:16Z","git_url":"git://github.com/JakeWharton/RxBinding.git","ssh_url":"git@github.com:JakeWharton/RxBinding.git","clone_url":"https://github.com/JakeWharton/RxBinding.git","svn_url":"https://github.com/JakeWharton/RxBinding","homepage":"","size":889,"stargazers_count":1732,"watchers_count":1732,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":146,"mirror_url":null,"open_issues_count":22,"forks":146,"open_issues":22,"watchers":1732,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/JakeWharton/RxBinding/pulls/211"},"html":{"href":"https://github.com/JakeWharton/RxBinding/pull/211"},"issue":{"href":"https://api.github.com/repos/JakeWharton/RxBinding/issues/211"},"comments":{"href":"https://api.github.com/repos/JakeWharton/RxBinding/issues/211/comments"},"review_comments":{"href":"https://api.github.com/repos/JakeWharton/RxBinding/pulls/211/comments"},"review_comment":{"href":"https://api.github.com/repos/JakeWharton/RxBinding/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/JakeWharton/RxBinding/pulls/211/commits"},"statuses":{"href":"https://api.github.com/repos/JakeWharton/RxBinding/statuses/d14c70efe18fb952b7f2f0111389084ba67fd00b"}}}}