{"action":"created","comment":{"url":"https://api.github.com/repos/uptechteam/VidmeExample/pulls/comments/59506128","id":59506128,"diff_hunk":"@@ -0,0 +1,126 @@\n+package com.uptech.example.vidme.ui.video_player;\n+\n+import android.media.MediaPlayer;\n+import android.net.Uri;\n+import android.os.Bundle;\n+import android.util.Log;\n+import android.view.View;\n+import android.widget.ImageView;\n+import android.widget.ProgressBar;\n+import android.widget.TextView;\n+\n+import com.sprylab.android.widget.TextureVideoView;\n+import com.uptech.example.vidme.R;\n+import com.uptech.example.vidme.model.Video;\n+import com.uptech.example.vidme.ui.BaseActivity;\n+\n+import butterknife.Bind;\n+\n+/**\n+ * Created by galya on 12.04.16.\n+ */\n+public class VideoActivity extends BaseActivity implements View.OnClickListener {\n+\n+    public static final String VIDEO_KEY = \"video\";\n+\n+    @Bind(R.id.video_activity_user)\n+    TextView user;\n+    @Bind(R.id.video_activity_video_title)\n+    TextView videoTitle;\n+    @Bind(R.id.video_activity_video_view)\n+    TextureVideoView videoView;\n+    @Bind(R.id.video_activity_progress_bar)\n+    ProgressBar progress;\n+    @Bind(R.id.video_activity_done_loading)\n+    ImageView doneImage;\n+    @Bind(R.id.video_activity_top_toolbar)\n+    View topToolbar;\n+    @Bind(R.id.video_activity_bottom_toolbar)\n+    View bottomToolbar;\n+\n+    private Video video;\n+\n+    @Override\n+    protected int getContentView() {\n+        return R.layout.activity_video;\n+    }\n+\n+    @Override\n+    protected void onCreate(Bundle savedInstanceState) {\n+        super.onCreate(savedInstanceState);\n+        if (findViewById(R.id.activity_video_content) != null) {\n+            findViewById(R.id.activity_video_content).setOnClickListener(this);\n+        }\n+        Bundle bundle = getIntent().getExtras();\n+        video = (Video) bundle.get(VIDEO_KEY);\n+        progress.setIndeterminate(true);\n+        initTextViews();\n+        initVideoView();\n+    }\n+\n+    private void initTextViews() {\n+        if (video != null) {\n+            if (video.getUser() != null) {\n+                user.setText(video.getUser().getUserName());\n+            } else {\n+                user.setText(R.string.unknown_user);\n+            }\n+            if (video.getTitle() != null && !video.getTitle().equals(\"\")) {","path":"app/src/main/java/com/uptech/example/vidme/ui/video_player/VideoActivity.java","position":68,"original_position":68,"commit_id":"b96d1974d7cfed2ad2082de7f1513388bc5c34ed","original_commit_id":"b96d1974d7cfed2ad2082de7f1513388bc5c34ed","user":{"login":"Dima564","id":2564019,"avatar_url":"https://avatars.githubusercontent.com/u/2564019?v=3","gravatar_id":"","url":"https://api.github.com/users/Dima564","html_url":"https://github.com/Dima564","followers_url":"https://api.github.com/users/Dima564/followers","following_url":"https://api.github.com/users/Dima564/following{/other_user}","gists_url":"https://api.github.com/users/Dima564/gists{/gist_id}","starred_url":"https://api.github.com/users/Dima564/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dima564/subscriptions","organizations_url":"https://api.github.com/users/Dima564/orgs","repos_url":"https://api.github.com/users/Dima564/repos","events_url":"https://api.github.com/users/Dima564/events{/privacy}","received_events_url":"https://api.github.com/users/Dima564/received_events","type":"User","site_admin":false},"body":"Is it even possible for a video not to have a title? In that case, use TextUtils.isEmpty()","created_at":"2016-04-13T07:50:45Z","updated_at":"2016-04-13T07:50:45Z","html_url":"https://github.com/uptechteam/VidmeExample/pull/6#discussion_r59506128","pull_request_url":"https://api.github.com/repos/uptechteam/VidmeExample/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/uptechteam/VidmeExample/pulls/comments/59506128"},"html":{"href":"https://github.com/uptechteam/VidmeExample/pull/6#discussion_r59506128"},"pull_request":{"href":"https://api.github.com/repos/uptechteam/VidmeExample/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/uptechteam/VidmeExample/pulls/6","id":66278673,"html_url":"https://github.com/uptechteam/VidmeExample/pull/6","diff_url":"https://github.com/uptechteam/VidmeExample/pull/6.diff","patch_url":"https://github.com/uptechteam/VidmeExample/pull/6.patch","issue_url":"https://api.github.com/repos/uptechteam/VidmeExample/issues/6","number":6,"state":"open","locked":false,"title":"Added video playing when clicking on a list item","user":{"login":"Dima564","id":2564019,"avatar_url":"https://avatars.githubusercontent.com/u/2564019?v=3","gravatar_id":"","url":"https://api.github.com/users/Dima564","html_url":"https://github.com/Dima564","followers_url":"https://api.github.com/users/Dima564/followers","following_url":"https://api.github.com/users/Dima564/following{/other_user}","gists_url":"https://api.github.com/users/Dima564/gists{/gist_id}","starred_url":"https://api.github.com/users/Dima564/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dima564/subscriptions","organizations_url":"https://api.github.com/users/Dima564/orgs","repos_url":"https://api.github.com/users/Dima564/repos","events_url":"https://api.github.com/users/Dima564/events{/privacy}","received_events_url":"https://api.github.com/users/Dima564/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-04-13T07:47:51Z","updated_at":"2016-04-13T07:50:45Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1b6fbc56d0d43cdc5d7f706406ca39ab096f56fe","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/uptechteam/VidmeExample/pulls/6/commits","review_comments_url":"https://api.github.com/repos/uptechteam/VidmeExample/pulls/6/comments","review_comment_url":"https://api.github.com/repos/uptechteam/VidmeExample/pulls/comments{/number}","comments_url":"https://api.github.com/repos/uptechteam/VidmeExample/issues/6/comments","statuses_url":"https://api.github.com/repos/uptechteam/VidmeExample/statuses/b96d1974d7cfed2ad2082de7f1513388bc5c34ed","head":{"label":"uptechteam:video_player_feature","ref":"video_player_feature","sha":"b96d1974d7cfed2ad2082de7f1513388bc5c34ed","user":{"login":"uptechteam","id":17813163,"avatar_url":"https://avatars.githubusercontent.com/u/17813163?v=3","gravatar_id":"","url":"https://api.github.com/users/uptechteam","html_url":"https://github.com/uptechteam","followers_url":"https://api.github.com/users/uptechteam/followers","following_url":"https://api.github.com/users/uptechteam/following{/other_user}","gists_url":"https://api.github.com/users/uptechteam/gists{/gist_id}","starred_url":"https://api.github.com/users/uptechteam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uptechteam/subscriptions","organizations_url":"https://api.github.com/users/uptechteam/orgs","repos_url":"https://api.github.com/users/uptechteam/repos","events_url":"https://api.github.com/users/uptechteam/events{/privacy}","received_events_url":"https://api.github.com/users/uptechteam/received_events","type":"Organization","site_admin":false},"repo":{"id":55002006,"name":"VidmeExample","full_name":"uptechteam/VidmeExample","owner":{"login":"uptechteam","id":17813163,"avatar_url":"https://avatars.githubusercontent.com/u/17813163?v=3","gravatar_id":"","url":"https://api.github.com/users/uptechteam","html_url":"https://github.com/uptechteam","followers_url":"https://api.github.com/users/uptechteam/followers","following_url":"https://api.github.com/users/uptechteam/following{/other_user}","gists_url":"https://api.github.com/users/uptechteam/gists{/gist_id}","starred_url":"https://api.github.com/users/uptechteam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uptechteam/subscriptions","organizations_url":"https://api.github.com/users/uptechteam/orgs","repos_url":"https://api.github.com/users/uptechteam/repos","events_url":"https://api.github.com/users/uptechteam/events{/privacy}","received_events_url":"https://api.github.com/users/uptechteam/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/uptechteam/VidmeExample","description":"Test Vidme client ","fork":false,"url":"https://api.github.com/repos/uptechteam/VidmeExample","forks_url":"https://api.github.com/repos/uptechteam/VidmeExample/forks","keys_url":"https://api.github.com/repos/uptechteam/VidmeExample/keys{/key_id}","collaborators_url":"https://api.github.com/repos/uptechteam/VidmeExample/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/uptechteam/VidmeExample/teams","hooks_url":"https://api.github.com/repos/uptechteam/VidmeExample/hooks","issue_events_url":"https://api.github.com/repos/uptechteam/VidmeExample/issues/events{/number}","events_url":"https://api.github.com/repos/uptechteam/VidmeExample/events","assignees_url":"https://api.github.com/repos/uptechteam/VidmeExample/assignees{/user}","branches_url":"https://api.github.com/repos/uptechteam/VidmeExample/branches{/branch}","tags_url":"https://api.github.com/repos/uptechteam/VidmeExample/tags","blobs_url":"https://api.github.com/repos/uptechteam/VidmeExample/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/uptechteam/VidmeExample/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/uptechteam/VidmeExample/git/refs{/sha}","trees_url":"https://api.github.com/repos/uptechteam/VidmeExample/git/trees{/sha}","statuses_url":"https://api.github.com/repos/uptechteam/VidmeExample/statuses/{sha}","languages_url":"https://api.github.com/repos/uptechteam/VidmeExample/languages","stargazers_url":"https://api.github.com/repos/uptechteam/VidmeExample/stargazers","contributors_url":"https://api.github.com/repos/uptechteam/VidmeExample/contributors","subscribers_url":"https://api.github.com/repos/uptechteam/VidmeExample/subscribers","subscription_url":"https://api.github.com/repos/uptechteam/VidmeExample/subscription","commits_url":"https://api.github.com/repos/uptechteam/VidmeExample/commits{/sha}","git_commits_url":"https://api.github.com/repos/uptechteam/VidmeExample/git/commits{/sha}","comments_url":"https://api.github.com/repos/uptechteam/VidmeExample/comments{/number}","issue_comment_url":"https://api.github.com/repos/uptechteam/VidmeExample/issues/comments{/number}","contents_url":"https://api.github.com/repos/uptechteam/VidmeExample/contents/{+path}","compare_url":"https://api.github.com/repos/uptechteam/VidmeExample/compare/{base}...{head}","merges_url":"https://api.github.com/repos/uptechteam/VidmeExample/merges","archive_url":"https://api.github.com/repos/uptechteam/VidmeExample/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/uptechteam/VidmeExample/downloads","issues_url":"https://api.github.com/repos/uptechteam/VidmeExample/issues{/number}","pulls_url":"https://api.github.com/repos/uptechteam/VidmeExample/pulls{/number}","milestones_url":"https://api.github.com/repos/uptechteam/VidmeExample/milestones{/number}","notifications_url":"https://api.github.com/repos/uptechteam/VidmeExample/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/uptechteam/VidmeExample/labels{/name}","releases_url":"https://api.github.com/repos/uptechteam/VidmeExample/releases{/id}","deployments_url":"https://api.github.com/repos/uptechteam/VidmeExample/deployments","created_at":"2016-03-29T18:51:56Z","updated_at":"2016-04-06T10:19:52Z","pushed_at":"2016-04-13T07:47:53Z","git_url":"git://github.com/uptechteam/VidmeExample.git","ssh_url":"git@github.com:uptechteam/VidmeExample.git","clone_url":"https://github.com/uptechteam/VidmeExample.git","svn_url":"https://github.com/uptechteam/VidmeExample","homepage":null,"size":191,"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":"develop"}},"base":{"label":"uptechteam:develop","ref":"develop","sha":"899065ec82f37092eaff9b83e0d36d9c04d0e2c8","user":{"login":"uptechteam","id":17813163,"avatar_url":"https://avatars.githubusercontent.com/u/17813163?v=3","gravatar_id":"","url":"https://api.github.com/users/uptechteam","html_url":"https://github.com/uptechteam","followers_url":"https://api.github.com/users/uptechteam/followers","following_url":"https://api.github.com/users/uptechteam/following{/other_user}","gists_url":"https://api.github.com/users/uptechteam/gists{/gist_id}","starred_url":"https://api.github.com/users/uptechteam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uptechteam/subscriptions","organizations_url":"https://api.github.com/users/uptechteam/orgs","repos_url":"https://api.github.com/users/uptechteam/repos","events_url":"https://api.github.com/users/uptechteam/events{/privacy}","received_events_url":"https://api.github.com/users/uptechteam/received_events","type":"Organization","site_admin":false},"repo":{"id":55002006,"name":"VidmeExample","full_name":"uptechteam/VidmeExample","owner":{"login":"uptechteam","id":17813163,"avatar_url":"https://avatars.githubusercontent.com/u/17813163?v=3","gravatar_id":"","url":"https://api.github.com/users/uptechteam","html_url":"https://github.com/uptechteam","followers_url":"https://api.github.com/users/uptechteam/followers","following_url":"https://api.github.com/users/uptechteam/following{/other_user}","gists_url":"https://api.github.com/users/uptechteam/gists{/gist_id}","starred_url":"https://api.github.com/users/uptechteam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uptechteam/subscriptions","organizations_url":"https://api.github.com/users/uptechteam/orgs","repos_url":"https://api.github.com/users/uptechteam/repos","events_url":"https://api.github.com/users/uptechteam/events{/privacy}","received_events_url":"https://api.github.com/users/uptechteam/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/uptechteam/VidmeExample","description":"Test Vidme client ","fork":false,"url":"https://api.github.com/repos/uptechteam/VidmeExample","forks_url":"https://api.github.com/repos/uptechteam/VidmeExample/forks","keys_url":"https://api.github.com/repos/uptechteam/VidmeExample/keys{/key_id}","collaborators_url":"https://api.github.com/repos/uptechteam/VidmeExample/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/uptechteam/VidmeExample/teams","hooks_url":"https://api.github.com/repos/uptechteam/VidmeExample/hooks","issue_events_url":"https://api.github.com/repos/uptechteam/VidmeExample/issues/events{/number}","events_url":"https://api.github.com/repos/uptechteam/VidmeExample/events","assignees_url":"https://api.github.com/repos/uptechteam/VidmeExample/assignees{/user}","branches_url":"https://api.github.com/repos/uptechteam/VidmeExample/branches{/branch}","tags_url":"https://api.github.com/repos/uptechteam/VidmeExample/tags","blobs_url":"https://api.github.com/repos/uptechteam/VidmeExample/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/uptechteam/VidmeExample/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/uptechteam/VidmeExample/git/refs{/sha}","trees_url":"https://api.github.com/repos/uptechteam/VidmeExample/git/trees{/sha}","statuses_url":"https://api.github.com/repos/uptechteam/VidmeExample/statuses/{sha}","languages_url":"https://api.github.com/repos/uptechteam/VidmeExample/languages","stargazers_url":"https://api.github.com/repos/uptechteam/VidmeExample/stargazers","contributors_url":"https://api.github.com/repos/uptechteam/VidmeExample/contributors","subscribers_url":"https://api.github.com/repos/uptechteam/VidmeExample/subscribers","subscription_url":"https://api.github.com/repos/uptechteam/VidmeExample/subscription","commits_url":"https://api.github.com/repos/uptechteam/VidmeExample/commits{/sha}","git_commits_url":"https://api.github.com/repos/uptechteam/VidmeExample/git/commits{/sha}","comments_url":"https://api.github.com/repos/uptechteam/VidmeExample/comments{/number}","issue_comment_url":"https://api.github.com/repos/uptechteam/VidmeExample/issues/comments{/number}","contents_url":"https://api.github.com/repos/uptechteam/VidmeExample/contents/{+path}","compare_url":"https://api.github.com/repos/uptechteam/VidmeExample/compare/{base}...{head}","merges_url":"https://api.github.com/repos/uptechteam/VidmeExample/merges","archive_url":"https://api.github.com/repos/uptechteam/VidmeExample/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/uptechteam/VidmeExample/downloads","issues_url":"https://api.github.com/repos/uptechteam/VidmeExample/issues{/number}","pulls_url":"https://api.github.com/repos/uptechteam/VidmeExample/pulls{/number}","milestones_url":"https://api.github.com/repos/uptechteam/VidmeExample/milestones{/number}","notifications_url":"https://api.github.com/repos/uptechteam/VidmeExample/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/uptechteam/VidmeExample/labels{/name}","releases_url":"https://api.github.com/repos/uptechteam/VidmeExample/releases{/id}","deployments_url":"https://api.github.com/repos/uptechteam/VidmeExample/deployments","created_at":"2016-03-29T18:51:56Z","updated_at":"2016-04-06T10:19:52Z","pushed_at":"2016-04-13T07:47:53Z","git_url":"git://github.com/uptechteam/VidmeExample.git","ssh_url":"git@github.com:uptechteam/VidmeExample.git","clone_url":"https://github.com/uptechteam/VidmeExample.git","svn_url":"https://github.com/uptechteam/VidmeExample","homepage":null,"size":191,"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":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/uptechteam/VidmeExample/pulls/6"},"html":{"href":"https://github.com/uptechteam/VidmeExample/pull/6"},"issue":{"href":"https://api.github.com/repos/uptechteam/VidmeExample/issues/6"},"comments":{"href":"https://api.github.com/repos/uptechteam/VidmeExample/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/uptechteam/VidmeExample/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/uptechteam/VidmeExample/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/uptechteam/VidmeExample/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/uptechteam/VidmeExample/statuses/b96d1974d7cfed2ad2082de7f1513388bc5c34ed"}}}}