{"action":"created","comment":{"url":"https://api.github.com/repos/fossasia/open-event-android/pulls/comments/34531841","id":34531841,"diff_hunk":"@@ -0,0 +1,98 @@\n+package org.fossasia.openevent.activities;\n+\n+import android.content.Intent;\n+import android.os.Bundle;\n+import android.support.v7.app.AppCompatActivity;\n+import android.support.v7.widget.DefaultItemAnimator;\n+import android.support.v7.widget.LinearLayoutManager;\n+import android.support.v7.widget.RecyclerView;\n+import android.support.v7.widget.Toolbar;\n+import android.view.Menu;\n+import android.view.MenuItem;\n+import android.widget.ImageView;\n+import android.widget.TextView;\n+\n+import org.fossasia.openevent.Adapters.SessionsAdapter;\n+import org.fossasia.openevent.R;\n+import org.fossasia.openevent.data.Session;\n+import org.fossasia.openevent.data.Speaker;\n+import org.fossasia.openevent.dbutils.DbSingleton;\n+import org.fossasia.openevent.utils.SpeakerIntent;\n+\n+import java.text.ParseException;\n+import java.util.List;\n+\n+/**\n+ * Created by MananWason on 30-06-2015.\n+ */\n+public class SpeakersActivity extends AppCompatActivity {\n+    SessionsAdapter sessionsAdapter;\n+    private String speaker;\n+    private Speaker clicked;\n+\n+\n+    @Override\n+    protected void onCreate(Bundle savedInstanceState) {\n+        super.onCreate(savedInstanceState);\n+        setContentView(R.layout.activity_speakers);\n+        DbSingleton dbSingleton = DbSingleton.getInstance();\n+        speaker = getIntent().getStringExtra(\"SPEAKER\");\n+        final Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar_speakers);\n+        setSupportActionBar(toolbar);\n+        getSupportActionBar().setDisplayHomeAsUpEnabled(true);\n+\n+        try {\n+            clicked = dbSingleton.getSpeakerbySpeakersname(speaker);","path":"app/src/main/java/org/fossasia/openevent/activities/SpeakersActivity.java","position":45,"original_position":45,"commit_id":"82de8004a7fffa6ae5759c7a668e3b216778ce2a","original_commit_id":"82de8004a7fffa6ae5759c7a668e3b216778ce2a","user":{"login":"creativepsyco","id":547235,"avatar_url":"https://avatars.githubusercontent.com/u/547235?v=3","gravatar_id":"","url":"https://api.github.com/users/creativepsyco","html_url":"https://github.com/creativepsyco","followers_url":"https://api.github.com/users/creativepsyco/followers","following_url":"https://api.github.com/users/creativepsyco/following{/other_user}","gists_url":"https://api.github.com/users/creativepsyco/gists{/gist_id}","starred_url":"https://api.github.com/users/creativepsyco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/creativepsyco/subscriptions","organizations_url":"https://api.github.com/users/creativepsyco/orgs","repos_url":"https://api.github.com/users/creativepsyco/repos","events_url":"https://api.github.com/users/creativepsyco/events{/privacy}","received_events_url":"https://api.github.com/users/creativepsyco/received_events","type":"User","site_admin":false},"body":"Or you could just pass the speaker id in the intent as well, because the previous Activity/Fragment that was displaying the speaker list already has it? I am assuming this, because you can make id primary key which makes searching and retrieval very fast, otherwise what's the point of having ID as a primary key and not using it at all.","created_at":"2015-07-14T02:07:01Z","updated_at":"2015-07-14T02:07:01Z","html_url":"https://github.com/fossasia/open-event-android/pull/46#discussion_r34531841","pull_request_url":"https://api.github.com/repos/fossasia/open-event-android/pulls/46","_links":{"self":{"href":"https://api.github.com/repos/fossasia/open-event-android/pulls/comments/34531841"},"html":{"href":"https://github.com/fossasia/open-event-android/pull/46#discussion_r34531841"},"pull_request":{"href":"https://api.github.com/repos/fossasia/open-event-android/pulls/46"}}},"pull_request":{"url":"https://api.github.com/repos/fossasia/open-event-android/pulls/46","id":38864743,"html_url":"https://github.com/fossasia/open-event-android/pull/46","diff_url":"https://github.com/fossasia/open-event-android/pull/46.diff","patch_url":"https://github.com/fossasia/open-event-android/pull/46.patch","issue_url":"https://api.github.com/repos/fossasia/open-event-android/issues/46","number":46,"state":"open","locked":false,"title":"Activity ui","user":{"login":"mananwason","id":10570249,"avatar_url":"https://avatars.githubusercontent.com/u/10570249?v=3","gravatar_id":"","url":"https://api.github.com/users/mananwason","html_url":"https://github.com/mananwason","followers_url":"https://api.github.com/users/mananwason/followers","following_url":"https://api.github.com/users/mananwason/following{/other_user}","gists_url":"https://api.github.com/users/mananwason/gists{/gist_id}","starred_url":"https://api.github.com/users/mananwason/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mananwason/subscriptions","organizations_url":"https://api.github.com/users/mananwason/orgs","repos_url":"https://api.github.com/users/mananwason/repos","events_url":"https://api.github.com/users/mananwason/events{/privacy}","received_events_url":"https://api.github.com/users/mananwason/received_events","type":"User","site_admin":false},"body":"@creativepsyco Please review and merge","created_at":"2015-06-30T10:46:50Z","updated_at":"2015-07-14T02:07:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"aad80d6ec7d4af6203a0c205cdb32589ab1b6682","assignee":{"login":"creativepsyco","id":547235,"avatar_url":"https://avatars.githubusercontent.com/u/547235?v=3","gravatar_id":"","url":"https://api.github.com/users/creativepsyco","html_url":"https://github.com/creativepsyco","followers_url":"https://api.github.com/users/creativepsyco/followers","following_url":"https://api.github.com/users/creativepsyco/following{/other_user}","gists_url":"https://api.github.com/users/creativepsyco/gists{/gist_id}","starred_url":"https://api.github.com/users/creativepsyco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/creativepsyco/subscriptions","organizations_url":"https://api.github.com/users/creativepsyco/orgs","repos_url":"https://api.github.com/users/creativepsyco/repos","events_url":"https://api.github.com/users/creativepsyco/events{/privacy}","received_events_url":"https://api.github.com/users/creativepsyco/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/fossasia/open-event-android/pulls/46/commits","review_comments_url":"https://api.github.com/repos/fossasia/open-event-android/pulls/46/comments","review_comment_url":"https://api.github.com/repos/fossasia/open-event-android/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fossasia/open-event-android/issues/46/comments","statuses_url":"https://api.github.com/repos/fossasia/open-event-android/statuses/82de8004a7fffa6ae5759c7a668e3b216778ce2a","head":{"label":"mananwason:activity_ui","ref":"activity_ui","sha":"82de8004a7fffa6ae5759c7a668e3b216778ce2a","user":{"login":"mananwason","id":10570249,"avatar_url":"https://avatars.githubusercontent.com/u/10570249?v=3","gravatar_id":"","url":"https://api.github.com/users/mananwason","html_url":"https://github.com/mananwason","followers_url":"https://api.github.com/users/mananwason/followers","following_url":"https://api.github.com/users/mananwason/following{/other_user}","gists_url":"https://api.github.com/users/mananwason/gists{/gist_id}","starred_url":"https://api.github.com/users/mananwason/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mananwason/subscriptions","organizations_url":"https://api.github.com/users/mananwason/orgs","repos_url":"https://api.github.com/users/mananwason/repos","events_url":"https://api.github.com/users/mananwason/events{/privacy}","received_events_url":"https://api.github.com/users/mananwason/received_events","type":"User","site_admin":false},"repo":{"id":37741450,"name":"open-event-android","full_name":"mananwason/open-event-android","owner":{"login":"mananwason","id":10570249,"avatar_url":"https://avatars.githubusercontent.com/u/10570249?v=3","gravatar_id":"","url":"https://api.github.com/users/mananwason","html_url":"https://github.com/mananwason","followers_url":"https://api.github.com/users/mananwason/followers","following_url":"https://api.github.com/users/mananwason/following{/other_user}","gists_url":"https://api.github.com/users/mananwason/gists{/gist_id}","starred_url":"https://api.github.com/users/mananwason/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mananwason/subscriptions","organizations_url":"https://api.github.com/users/mananwason/orgs","repos_url":"https://api.github.com/users/mananwason/repos","events_url":"https://api.github.com/users/mananwason/events{/privacy}","received_events_url":"https://api.github.com/users/mananwason/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mananwason/open-event-android","description":"The Open Event Android Client","fork":true,"url":"https://api.github.com/repos/mananwason/open-event-android","forks_url":"https://api.github.com/repos/mananwason/open-event-android/forks","keys_url":"https://api.github.com/repos/mananwason/open-event-android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mananwason/open-event-android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mananwason/open-event-android/teams","hooks_url":"https://api.github.com/repos/mananwason/open-event-android/hooks","issue_events_url":"https://api.github.com/repos/mananwason/open-event-android/issues/events{/number}","events_url":"https://api.github.com/repos/mananwason/open-event-android/events","assignees_url":"https://api.github.com/repos/mananwason/open-event-android/assignees{/user}","branches_url":"https://api.github.com/repos/mananwason/open-event-android/branches{/branch}","tags_url":"https://api.github.com/repos/mananwason/open-event-android/tags","blobs_url":"https://api.github.com/repos/mananwason/open-event-android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mananwason/open-event-android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mananwason/open-event-android/git/refs{/sha}","trees_url":"https://api.github.com/repos/mananwason/open-event-android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mananwason/open-event-android/statuses/{sha}","languages_url":"https://api.github.com/repos/mananwason/open-event-android/languages","stargazers_url":"https://api.github.com/repos/mananwason/open-event-android/stargazers","contributors_url":"https://api.github.com/repos/mananwason/open-event-android/contributors","subscribers_url":"https://api.github.com/repos/mananwason/open-event-android/subscribers","subscription_url":"https://api.github.com/repos/mananwason/open-event-android/subscription","commits_url":"https://api.github.com/repos/mananwason/open-event-android/commits{/sha}","git_commits_url":"https://api.github.com/repos/mananwason/open-event-android/git/commits{/sha}","comments_url":"https://api.github.com/repos/mananwason/open-event-android/comments{/number}","issue_comment_url":"https://api.github.com/repos/mananwason/open-event-android/issues/comments{/number}","contents_url":"https://api.github.com/repos/mananwason/open-event-android/contents/{+path}","compare_url":"https://api.github.com/repos/mananwason/open-event-android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mananwason/open-event-android/merges","archive_url":"https://api.github.com/repos/mananwason/open-event-android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mananwason/open-event-android/downloads","issues_url":"https://api.github.com/repos/mananwason/open-event-android/issues{/number}","pulls_url":"https://api.github.com/repos/mananwason/open-event-android/pulls{/number}","milestones_url":"https://api.github.com/repos/mananwason/open-event-android/milestones{/number}","notifications_url":"https://api.github.com/repos/mananwason/open-event-android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mananwason/open-event-android/labels{/name}","releases_url":"https://api.github.com/repos/mananwason/open-event-android/releases{/id}","created_at":"2015-06-19T19:22:59Z","updated_at":"2015-06-19T19:23:00Z","pushed_at":"2015-07-13T13:30:58Z","git_url":"git://github.com/mananwason/open-event-android.git","ssh_url":"git@github.com:mananwason/open-event-android.git","clone_url":"https://github.com/mananwason/open-event-android.git","svn_url":"https://github.com/mananwason/open-event-android","homepage":null,"size":538,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"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":"fossasia:master","ref":"master","sha":"6c42690d5dad08c4d90b2b74fad1264baa54eaf2","user":{"login":"fossasia","id":6295529,"avatar_url":"https://avatars.githubusercontent.com/u/6295529?v=3","gravatar_id":"","url":"https://api.github.com/users/fossasia","html_url":"https://github.com/fossasia","followers_url":"https://api.github.com/users/fossasia/followers","following_url":"https://api.github.com/users/fossasia/following{/other_user}","gists_url":"https://api.github.com/users/fossasia/gists{/gist_id}","starred_url":"https://api.github.com/users/fossasia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fossasia/subscriptions","organizations_url":"https://api.github.com/users/fossasia/orgs","repos_url":"https://api.github.com/users/fossasia/repos","events_url":"https://api.github.com/users/fossasia/events{/privacy}","received_events_url":"https://api.github.com/users/fossasia/received_events","type":"Organization","site_admin":false},"repo":{"id":35269607,"name":"open-event-android","full_name":"fossasia/open-event-android","owner":{"login":"fossasia","id":6295529,"avatar_url":"https://avatars.githubusercontent.com/u/6295529?v=3","gravatar_id":"","url":"https://api.github.com/users/fossasia","html_url":"https://github.com/fossasia","followers_url":"https://api.github.com/users/fossasia/followers","following_url":"https://api.github.com/users/fossasia/following{/other_user}","gists_url":"https://api.github.com/users/fossasia/gists{/gist_id}","starred_url":"https://api.github.com/users/fossasia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fossasia/subscriptions","organizations_url":"https://api.github.com/users/fossasia/orgs","repos_url":"https://api.github.com/users/fossasia/repos","events_url":"https://api.github.com/users/fossasia/events{/privacy}","received_events_url":"https://api.github.com/users/fossasia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fossasia/open-event-android","description":"The Open Event Android Client","fork":false,"url":"https://api.github.com/repos/fossasia/open-event-android","forks_url":"https://api.github.com/repos/fossasia/open-event-android/forks","keys_url":"https://api.github.com/repos/fossasia/open-event-android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fossasia/open-event-android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fossasia/open-event-android/teams","hooks_url":"https://api.github.com/repos/fossasia/open-event-android/hooks","issue_events_url":"https://api.github.com/repos/fossasia/open-event-android/issues/events{/number}","events_url":"https://api.github.com/repos/fossasia/open-event-android/events","assignees_url":"https://api.github.com/repos/fossasia/open-event-android/assignees{/user}","branches_url":"https://api.github.com/repos/fossasia/open-event-android/branches{/branch}","tags_url":"https://api.github.com/repos/fossasia/open-event-android/tags","blobs_url":"https://api.github.com/repos/fossasia/open-event-android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fossasia/open-event-android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fossasia/open-event-android/git/refs{/sha}","trees_url":"https://api.github.com/repos/fossasia/open-event-android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fossasia/open-event-android/statuses/{sha}","languages_url":"https://api.github.com/repos/fossasia/open-event-android/languages","stargazers_url":"https://api.github.com/repos/fossasia/open-event-android/stargazers","contributors_url":"https://api.github.com/repos/fossasia/open-event-android/contributors","subscribers_url":"https://api.github.com/repos/fossasia/open-event-android/subscribers","subscription_url":"https://api.github.com/repos/fossasia/open-event-android/subscription","commits_url":"https://api.github.com/repos/fossasia/open-event-android/commits{/sha}","git_commits_url":"https://api.github.com/repos/fossasia/open-event-android/git/commits{/sha}","comments_url":"https://api.github.com/repos/fossasia/open-event-android/comments{/number}","issue_comment_url":"https://api.github.com/repos/fossasia/open-event-android/issues/comments{/number}","contents_url":"https://api.github.com/repos/fossasia/open-event-android/contents/{+path}","compare_url":"https://api.github.com/repos/fossasia/open-event-android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fossasia/open-event-android/merges","archive_url":"https://api.github.com/repos/fossasia/open-event-android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fossasia/open-event-android/downloads","issues_url":"https://api.github.com/repos/fossasia/open-event-android/issues{/number}","pulls_url":"https://api.github.com/repos/fossasia/open-event-android/pulls{/number}","milestones_url":"https://api.github.com/repos/fossasia/open-event-android/milestones{/number}","notifications_url":"https://api.github.com/repos/fossasia/open-event-android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fossasia/open-event-android/labels{/name}","releases_url":"https://api.github.com/repos/fossasia/open-event-android/releases{/id}","created_at":"2015-05-08T09:04:11Z","updated_at":"2015-07-07T13:06:04Z","pushed_at":"2015-07-03T16:45:14Z","git_url":"git://github.com/fossasia/open-event-android.git","ssh_url":"git@github.com:fossasia/open-event-android.git","clone_url":"https://github.com/fossasia/open-event-android.git","svn_url":"https://github.com/fossasia/open-event-android","homepage":null,"size":784,"stargazers_count":4,"watchers_count":4,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":12,"forks":6,"open_issues":12,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/fossasia/open-event-android/pulls/46"},"html":{"href":"https://github.com/fossasia/open-event-android/pull/46"},"issue":{"href":"https://api.github.com/repos/fossasia/open-event-android/issues/46"},"comments":{"href":"https://api.github.com/repos/fossasia/open-event-android/issues/46/comments"},"review_comments":{"href":"https://api.github.com/repos/fossasia/open-event-android/pulls/46/comments"},"review_comment":{"href":"https://api.github.com/repos/fossasia/open-event-android/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fossasia/open-event-android/pulls/46/commits"},"statuses":{"href":"https://api.github.com/repos/fossasia/open-event-android/statuses/82de8004a7fffa6ae5759c7a668e3b216778ce2a"}}}}