{"action":"created","comment":{"url":"https://api.github.com/repos/sagilorber/Movie-Fiend/pulls/comments/80442403","id":80442403,"diff_hunk":"@@ -75,13 +59,35 @@ public void onLoadFinished(Loader<List<Movie>> loader, List<Movie> data) {\n             Toast.makeText(this, \"Server error... :(\", Toast.LENGTH_LONG).show();\n             return;\n         }\n-        mAdapter = new CardAdapter(data, this);\n+        //checkDeepLink(getIntent(),data);\n+        mAdapter = new CardAdapter(data,this);\n         mRecyclerView.setAdapter(mAdapter);\n     }\n \n     @Override\n     public void onLoaderReset(Loader<List<Movie>> loader) {\n \n     }\n+    @Override\n+    protected void onNewIntent(Intent intent) {\n+        super.onNewIntent(intent);\n+        //checkDeepLink(intent,mAdapter.getMovieList());\n+    }\n \n+//    private void checkDeepLink(Intent intent,List <Movie> data) {\n+//        if (intent.getData() != null && intent.getData().getLastPathSegment().contains(\"-\")) {\n+//            String[] parts = intent.getData().getLastPathSegment().split(\"-\");\n+//            int deepLinkMovieId = Integer.parseInt(parts[0]);\n+//            for (int i = 0; i < data.size(); i++) {\n+//                if (data.get(i).getId() == deepLinkMovieId) {\n+//                    Intent intent2 = new Intent(this, MovieDetailActivity.class);\n+//                    Bundle b = new Bundle();\n+//                    b.putParcelable(MovieDetailActivity.EXTRA_MOVIE, data.get(i));\n+//                    intent2.putExtras(b);\n+//                    startActivity(intent2);\n+//                    break;\n+//                }\n+//            }\n+//        }\n+//    }","path":"app/src/main/java/com/example/slorber/moviefiend/MainActivity.java","position":60,"original_position":60,"commit_id":"2d594e79313a1a23d346d5d5ea5954aba5f8efd4","original_commit_id":"2d594e79313a1a23d346d5d5ea5954aba5f8efd4","user":{"login":"ifeins","id":1324361,"avatar_url":"https://avatars.githubusercontent.com/u/1324361?v=3","gravatar_id":"","url":"https://api.github.com/users/ifeins","html_url":"https://github.com/ifeins","followers_url":"https://api.github.com/users/ifeins/followers","following_url":"https://api.github.com/users/ifeins/following{/other_user}","gists_url":"https://api.github.com/users/ifeins/gists{/gist_id}","starred_url":"https://api.github.com/users/ifeins/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ifeins/subscriptions","organizations_url":"https://api.github.com/users/ifeins/orgs","repos_url":"https://api.github.com/users/ifeins/repos","events_url":"https://api.github.com/users/ifeins/events{/privacy}","received_events_url":"https://api.github.com/users/ifeins/received_events","type":"User","site_admin":false},"body":"please remove all commented-out code ","created_at":"2016-09-26T09:55:57Z","updated_at":"2016-09-26T10:04:18Z","html_url":"https://github.com/sagilorber/Movie-Fiend/pull/5#discussion_r80442403","pull_request_url":"https://api.github.com/repos/sagilorber/Movie-Fiend/pulls/5","_links":{"self":{"href":"https://api.github.com/repos/sagilorber/Movie-Fiend/pulls/comments/80442403"},"html":{"href":"https://github.com/sagilorber/Movie-Fiend/pull/5#discussion_r80442403"},"pull_request":{"href":"https://api.github.com/repos/sagilorber/Movie-Fiend/pulls/5"}}},"pull_request":{"url":"https://api.github.com/repos/sagilorber/Movie-Fiend/pulls/5","id":86644114,"html_url":"https://github.com/sagilorber/Movie-Fiend/pull/5","diff_url":"https://github.com/sagilorber/Movie-Fiend/pull/5.diff","patch_url":"https://github.com/sagilorber/Movie-Fiend/pull/5.patch","issue_url":"https://api.github.com/repos/sagilorber/Movie-Fiend/issues/5","number":5,"state":"open","locked":false,"title":"Step5 - deeplink","user":{"login":"sagilorber","id":13184423,"avatar_url":"https://avatars.githubusercontent.com/u/13184423?v=3","gravatar_id":"","url":"https://api.github.com/users/sagilorber","html_url":"https://github.com/sagilorber","followers_url":"https://api.github.com/users/sagilorber/followers","following_url":"https://api.github.com/users/sagilorber/following{/other_user}","gists_url":"https://api.github.com/users/sagilorber/gists{/gist_id}","starred_url":"https://api.github.com/users/sagilorber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sagilorber/subscriptions","organizations_url":"https://api.github.com/users/sagilorber/orgs","repos_url":"https://api.github.com/users/sagilorber/repos","events_url":"https://api.github.com/users/sagilorber/events{/privacy}","received_events_url":"https://api.github.com/users/sagilorber/received_events","type":"User","site_admin":false},"body":"DeepLink added. it caches link with the pattern: \r\nhttps://www.themoviedb.org/movie/.* when .* has the movie id.\r\notherwise  it will launch the airing now list.\r\n\r\n![deeplink](https://cloud.githubusercontent.com/assets/13184423/18813979/73314338-8315-11e6-856b-ce2f160e4c53.gif)\r\n ","created_at":"2016-09-25T08:45:15Z","updated_at":"2016-09-26T10:04:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"530a9f2ad501226cdadb7f7cc97948638560a1a9","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/sagilorber/Movie-Fiend/pulls/5/commits","review_comments_url":"https://api.github.com/repos/sagilorber/Movie-Fiend/pulls/5/comments","review_comment_url":"https://api.github.com/repos/sagilorber/Movie-Fiend/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sagilorber/Movie-Fiend/issues/5/comments","statuses_url":"https://api.github.com/repos/sagilorber/Movie-Fiend/statuses/2d594e79313a1a23d346d5d5ea5954aba5f8efd4","head":{"label":"sagilorber:step5","ref":"step5","sha":"2d594e79313a1a23d346d5d5ea5954aba5f8efd4","user":{"login":"sagilorber","id":13184423,"avatar_url":"https://avatars.githubusercontent.com/u/13184423?v=3","gravatar_id":"","url":"https://api.github.com/users/sagilorber","html_url":"https://github.com/sagilorber","followers_url":"https://api.github.com/users/sagilorber/followers","following_url":"https://api.github.com/users/sagilorber/following{/other_user}","gists_url":"https://api.github.com/users/sagilorber/gists{/gist_id}","starred_url":"https://api.github.com/users/sagilorber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sagilorber/subscriptions","organizations_url":"https://api.github.com/users/sagilorber/orgs","repos_url":"https://api.github.com/users/sagilorber/repos","events_url":"https://api.github.com/users/sagilorber/events{/privacy}","received_events_url":"https://api.github.com/users/sagilorber/received_events","type":"User","site_admin":false},"repo":{"id":67584448,"name":"Movie-Fiend","full_name":"sagilorber/Movie-Fiend","owner":{"login":"sagilorber","id":13184423,"avatar_url":"https://avatars.githubusercontent.com/u/13184423?v=3","gravatar_id":"","url":"https://api.github.com/users/sagilorber","html_url":"https://github.com/sagilorber","followers_url":"https://api.github.com/users/sagilorber/followers","following_url":"https://api.github.com/users/sagilorber/following{/other_user}","gists_url":"https://api.github.com/users/sagilorber/gists{/gist_id}","starred_url":"https://api.github.com/users/sagilorber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sagilorber/subscriptions","organizations_url":"https://api.github.com/users/sagilorber/orgs","repos_url":"https://api.github.com/users/sagilorber/repos","events_url":"https://api.github.com/users/sagilorber/events{/privacy}","received_events_url":"https://api.github.com/users/sagilorber/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sagilorber/Movie-Fiend","description":null,"fork":false,"url":"https://api.github.com/repos/sagilorber/Movie-Fiend","forks_url":"https://api.github.com/repos/sagilorber/Movie-Fiend/forks","keys_url":"https://api.github.com/repos/sagilorber/Movie-Fiend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sagilorber/Movie-Fiend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sagilorber/Movie-Fiend/teams","hooks_url":"https://api.github.com/repos/sagilorber/Movie-Fiend/hooks","issue_events_url":"https://api.github.com/repos/sagilorber/Movie-Fiend/issues/events{/number}","events_url":"https://api.github.com/repos/sagilorber/Movie-Fiend/events","assignees_url":"https://api.github.com/repos/sagilorber/Movie-Fiend/assignees{/user}","branches_url":"https://api.github.com/repos/sagilorber/Movie-Fiend/branches{/branch}","tags_url":"https://api.github.com/repos/sagilorber/Movie-Fiend/tags","blobs_url":"https://api.github.com/repos/sagilorber/Movie-Fiend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sagilorber/Movie-Fiend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sagilorber/Movie-Fiend/git/refs{/sha}","trees_url":"https://api.github.com/repos/sagilorber/Movie-Fiend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sagilorber/Movie-Fiend/statuses/{sha}","languages_url":"https://api.github.com/repos/sagilorber/Movie-Fiend/languages","stargazers_url":"https://api.github.com/repos/sagilorber/Movie-Fiend/stargazers","contributors_url":"https://api.github.com/repos/sagilorber/Movie-Fiend/contributors","subscribers_url":"https://api.github.com/repos/sagilorber/Movie-Fiend/subscribers","subscription_url":"https://api.github.com/repos/sagilorber/Movie-Fiend/subscription","commits_url":"https://api.github.com/repos/sagilorber/Movie-Fiend/commits{/sha}","git_commits_url":"https://api.github.com/repos/sagilorber/Movie-Fiend/git/commits{/sha}","comments_url":"https://api.github.com/repos/sagilorber/Movie-Fiend/comments{/number}","issue_comment_url":"https://api.github.com/repos/sagilorber/Movie-Fiend/issues/comments{/number}","contents_url":"https://api.github.com/repos/sagilorber/Movie-Fiend/contents/{+path}","compare_url":"https://api.github.com/repos/sagilorber/Movie-Fiend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sagilorber/Movie-Fiend/merges","archive_url":"https://api.github.com/repos/sagilorber/Movie-Fiend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sagilorber/Movie-Fiend/downloads","issues_url":"https://api.github.com/repos/sagilorber/Movie-Fiend/issues{/number}","pulls_url":"https://api.github.com/repos/sagilorber/Movie-Fiend/pulls{/number}","milestones_url":"https://api.github.com/repos/sagilorber/Movie-Fiend/milestones{/number}","notifications_url":"https://api.github.com/repos/sagilorber/Movie-Fiend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sagilorber/Movie-Fiend/labels{/name}","releases_url":"https://api.github.com/repos/sagilorber/Movie-Fiend/releases{/id}","deployments_url":"https://api.github.com/repos/sagilorber/Movie-Fiend/deployments","created_at":"2016-09-07T07:47:52Z","updated_at":"2016-09-07T08:15:27Z","pushed_at":"2016-09-25T08:45:16Z","git_url":"git://github.com/sagilorber/Movie-Fiend.git","ssh_url":"git@github.com:sagilorber/Movie-Fiend.git","clone_url":"https://github.com/sagilorber/Movie-Fiend.git","svn_url":"https://github.com/sagilorber/Movie-Fiend","homepage":null,"size":222,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"sagilorber:master","ref":"master","sha":"8bedce2f4dc0a9e4b7e4d681c43cc8d048965baa","user":{"login":"sagilorber","id":13184423,"avatar_url":"https://avatars.githubusercontent.com/u/13184423?v=3","gravatar_id":"","url":"https://api.github.com/users/sagilorber","html_url":"https://github.com/sagilorber","followers_url":"https://api.github.com/users/sagilorber/followers","following_url":"https://api.github.com/users/sagilorber/following{/other_user}","gists_url":"https://api.github.com/users/sagilorber/gists{/gist_id}","starred_url":"https://api.github.com/users/sagilorber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sagilorber/subscriptions","organizations_url":"https://api.github.com/users/sagilorber/orgs","repos_url":"https://api.github.com/users/sagilorber/repos","events_url":"https://api.github.com/users/sagilorber/events{/privacy}","received_events_url":"https://api.github.com/users/sagilorber/received_events","type":"User","site_admin":false},"repo":{"id":67584448,"name":"Movie-Fiend","full_name":"sagilorber/Movie-Fiend","owner":{"login":"sagilorber","id":13184423,"avatar_url":"https://avatars.githubusercontent.com/u/13184423?v=3","gravatar_id":"","url":"https://api.github.com/users/sagilorber","html_url":"https://github.com/sagilorber","followers_url":"https://api.github.com/users/sagilorber/followers","following_url":"https://api.github.com/users/sagilorber/following{/other_user}","gists_url":"https://api.github.com/users/sagilorber/gists{/gist_id}","starred_url":"https://api.github.com/users/sagilorber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sagilorber/subscriptions","organizations_url":"https://api.github.com/users/sagilorber/orgs","repos_url":"https://api.github.com/users/sagilorber/repos","events_url":"https://api.github.com/users/sagilorber/events{/privacy}","received_events_url":"https://api.github.com/users/sagilorber/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sagilorber/Movie-Fiend","description":null,"fork":false,"url":"https://api.github.com/repos/sagilorber/Movie-Fiend","forks_url":"https://api.github.com/repos/sagilorber/Movie-Fiend/forks","keys_url":"https://api.github.com/repos/sagilorber/Movie-Fiend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sagilorber/Movie-Fiend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sagilorber/Movie-Fiend/teams","hooks_url":"https://api.github.com/repos/sagilorber/Movie-Fiend/hooks","issue_events_url":"https://api.github.com/repos/sagilorber/Movie-Fiend/issues/events{/number}","events_url":"https://api.github.com/repos/sagilorber/Movie-Fiend/events","assignees_url":"https://api.github.com/repos/sagilorber/Movie-Fiend/assignees{/user}","branches_url":"https://api.github.com/repos/sagilorber/Movie-Fiend/branches{/branch}","tags_url":"https://api.github.com/repos/sagilorber/Movie-Fiend/tags","blobs_url":"https://api.github.com/repos/sagilorber/Movie-Fiend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sagilorber/Movie-Fiend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sagilorber/Movie-Fiend/git/refs{/sha}","trees_url":"https://api.github.com/repos/sagilorber/Movie-Fiend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sagilorber/Movie-Fiend/statuses/{sha}","languages_url":"https://api.github.com/repos/sagilorber/Movie-Fiend/languages","stargazers_url":"https://api.github.com/repos/sagilorber/Movie-Fiend/stargazers","contributors_url":"https://api.github.com/repos/sagilorber/Movie-Fiend/contributors","subscribers_url":"https://api.github.com/repos/sagilorber/Movie-Fiend/subscribers","subscription_url":"https://api.github.com/repos/sagilorber/Movie-Fiend/subscription","commits_url":"https://api.github.com/repos/sagilorber/Movie-Fiend/commits{/sha}","git_commits_url":"https://api.github.com/repos/sagilorber/Movie-Fiend/git/commits{/sha}","comments_url":"https://api.github.com/repos/sagilorber/Movie-Fiend/comments{/number}","issue_comment_url":"https://api.github.com/repos/sagilorber/Movie-Fiend/issues/comments{/number}","contents_url":"https://api.github.com/repos/sagilorber/Movie-Fiend/contents/{+path}","compare_url":"https://api.github.com/repos/sagilorber/Movie-Fiend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sagilorber/Movie-Fiend/merges","archive_url":"https://api.github.com/repos/sagilorber/Movie-Fiend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sagilorber/Movie-Fiend/downloads","issues_url":"https://api.github.com/repos/sagilorber/Movie-Fiend/issues{/number}","pulls_url":"https://api.github.com/repos/sagilorber/Movie-Fiend/pulls{/number}","milestones_url":"https://api.github.com/repos/sagilorber/Movie-Fiend/milestones{/number}","notifications_url":"https://api.github.com/repos/sagilorber/Movie-Fiend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sagilorber/Movie-Fiend/labels{/name}","releases_url":"https://api.github.com/repos/sagilorber/Movie-Fiend/releases{/id}","deployments_url":"https://api.github.com/repos/sagilorber/Movie-Fiend/deployments","created_at":"2016-09-07T07:47:52Z","updated_at":"2016-09-07T08:15:27Z","pushed_at":"2016-09-25T08:45:16Z","git_url":"git://github.com/sagilorber/Movie-Fiend.git","ssh_url":"git@github.com:sagilorber/Movie-Fiend.git","clone_url":"https://github.com/sagilorber/Movie-Fiend.git","svn_url":"https://github.com/sagilorber/Movie-Fiend","homepage":null,"size":222,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sagilorber/Movie-Fiend/pulls/5"},"html":{"href":"https://github.com/sagilorber/Movie-Fiend/pull/5"},"issue":{"href":"https://api.github.com/repos/sagilorber/Movie-Fiend/issues/5"},"comments":{"href":"https://api.github.com/repos/sagilorber/Movie-Fiend/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/sagilorber/Movie-Fiend/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/sagilorber/Movie-Fiend/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sagilorber/Movie-Fiend/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/sagilorber/Movie-Fiend/statuses/2d594e79313a1a23d346d5d5ea5954aba5f8efd4"}}}}
{"actor":{"display_login":"ifeins"}}