{"action":"created","comment":{"url":"https://api.github.com/repos/yamblz-native/fragments/pulls/comments/74029598","id":74029598,"diff_hunk":"@@ -0,0 +1,106 @@\n+package ru.yandex.yamblz.homework.artists;\n+\n+import android.os.Bundle;\n+import android.support.annotation.Nullable;\n+import android.support.v4.app.DialogFragment;\n+import android.support.v7.widget.Toolbar;\n+import android.view.LayoutInflater;\n+import android.view.View;\n+import android.view.ViewGroup;\n+import android.widget.ImageView;\n+import android.widget.TextView;\n+\n+import com.bumptech.glide.Glide;\n+\n+import butterknife.BindView;\n+import butterknife.ButterKnife;\n+import butterknife.Unbinder;\n+import ru.yandex.yamblz.R;;\n+import ru.yandex.yamblz.homework.Utils;\n+import ru.yandex.yamblz.homework.data.entity.Artist;\n+\n+import static ru.yandex.yamblz.homework.artists.ArtistsFragment.KEY_ARTIST;\n+\n+/**\n+ * Created by postnov on 25.03.2016.\n+ */\n+public class DetailsFragment extends DialogFragment\n+{\n+    @BindView(R.id.detail_cover)\n+    ImageView cover;\n+\n+    @BindView(R.id.detail_genres)\n+    TextView genres;\n+\n+    @BindView(R.id.detail_albums_songs)\n+    TextView albumsAndTracks;\n+\n+    @BindView(R.id.detail_desc)\n+    TextView description;\n+\n+    private Unbinder unbinder;\n+\n+    public static DetailsFragment newInstance(Artist artist)\n+    {\n+        Bundle args = new Bundle();\n+        args.putParcelable(KEY_ARTIST, artist);\n+        DetailsFragment fragment = new DetailsFragment();\n+        fragment.setArguments(args);\n+        fragment.setStyle(DialogFragment.STYLE_NO_TITLE, 0);\n+\n+        return fragment;\n+    }\n+\n+    @Nullable\n+    @Override\n+    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle bundle)\n+    {\n+        View view = inflater.inflate(R.layout.fragment_details, container, false);\n+        unbinder = ButterKnife.bind(this, view);\n+        return view;\n+    }\n+\n+    @Override\n+    public void onViewCreated(View view, Bundle savedInstanceState)\n+    {\n+        super.onViewCreated(view, savedInstanceState);\n+        Artist artist = getArguments().getParcelable(KEY_ARTIST);\n+        boolean isLargeLayout = getResources().getBoolean(R.bool.large_layout);\n+        if (isLargeLayout) initToolbar(view, artist.getName());\n+\n+        if (artist != null)\n+        {\n+            Glide.with(this).load(artist.getCoverSmall()).into(cover);\n+\n+            String albums = getResources().getQuantityString(\n+                    R.plurals.numberOfAlbums,\n+                    artist.getAlbums(),\n+                    artist.getAlbums());\n+            String tracks = getResources().getQuantityString(\n+                    R.plurals.numberOfTracks,\n+                    artist.getTracks(),\n+                    artist.getTracks());\n+\n+            genres.setText(artist.getGenres());\n+            albumsAndTracks.setText(Utils.concatStrings(tracks, \", \", albums));","path":"app/src/main/java/ru/yandex/yamblz/homework/artists/DetailsFragment.java","position":null,"original_position":85,"commit_id":"f070d0fa05c0496dd6f8fc06ea60a6d877f669f9","original_commit_id":"ee1103289e6476c92a9d63b58c821618e56a4e28","user":{"login":"valpostnov","id":18093368,"avatar_url":"https://avatars.githubusercontent.com/u/18093368?v=3","gravatar_id":"","url":"https://api.github.com/users/valpostnov","html_url":"https://github.com/valpostnov","followers_url":"https://api.github.com/users/valpostnov/followers","following_url":"https://api.github.com/users/valpostnov/following{/other_user}","gists_url":"https://api.github.com/users/valpostnov/gists{/gist_id}","starred_url":"https://api.github.com/users/valpostnov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valpostnov/subscriptions","organizations_url":"https://api.github.com/users/valpostnov/orgs","repos_url":"https://api.github.com/users/valpostnov/repos","events_url":"https://api.github.com/users/valpostnov/events{/privacy}","received_events_url":"https://api.github.com/users/valpostnov/received_events","type":"User","site_admin":false},"body":"Я у других ребят в комментах такие замечания встречал или я не правильно там их расценил?","created_at":"2016-08-09T09:53:24Z","updated_at":"2016-08-09T09:53:24Z","html_url":"https://github.com/yamblz-native/fragments/pull/3#discussion_r74029598","pull_request_url":"https://api.github.com/repos/yamblz-native/fragments/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/yamblz-native/fragments/pulls/comments/74029598"},"html":{"href":"https://github.com/yamblz-native/fragments/pull/3#discussion_r74029598"},"pull_request":{"href":"https://api.github.com/repos/yamblz-native/fragments/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/yamblz-native/fragments/pulls/3","id":80381295,"html_url":"https://github.com/yamblz-native/fragments/pull/3","diff_url":"https://github.com/yamblz-native/fragments/pull/3.diff","patch_url":"https://github.com/yamblz-native/fragments/pull/3.patch","issue_url":"https://api.github.com/repos/yamblz-native/fragments/issues/3","number":3,"state":"open","locked":false,"title":"Valentin Postnov (@valpostnov), hw","user":{"login":"valpostnov","id":18093368,"avatar_url":"https://avatars.githubusercontent.com/u/18093368?v=3","gravatar_id":"","url":"https://api.github.com/users/valpostnov","html_url":"https://github.com/valpostnov","followers_url":"https://api.github.com/users/valpostnov/followers","following_url":"https://api.github.com/users/valpostnov/following{/other_user}","gists_url":"https://api.github.com/users/valpostnov/gists{/gist_id}","starred_url":"https://api.github.com/users/valpostnov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valpostnov/subscriptions","organizations_url":"https://api.github.com/users/valpostnov/orgs","repos_url":"https://api.github.com/users/valpostnov/repos","events_url":"https://api.github.com/users/valpostnov/events{/privacy}","received_events_url":"https://api.github.com/users/valpostnov/received_events","type":"User","site_admin":false},"body":"### Клиентская часть из домашней работы по Content providers + домашняя работа по Fragments\r\n[Планшет вид 1](https://cloud.githubusercontent.com/assets/18093368/17466058/f5a2fe4c-5d0e-11e6-9188-90205d525bfb.png)\r\n[Планшет вид 2](https://cloud.githubusercontent.com/assets/18093368/17466066/10e797bc-5d0f-11e6-8cbc-76bb8365eb4f.png)\r\n\r\n[Телефон вид 1](https://cloud.githubusercontent.com/assets/18093368/17466083/766e77fe-5d0f-11e6-9750-61d4e7242aee.png)\r\n[Телефон вид 2](https://cloud.githubusercontent.com/assets/18093368/17466088/8cf879b6-5d0f-11e6-9e84-0f2b90f7607b.png)\r\n\r\nЧтобы протестировать нужен --> [Content provider](https://github.com/valpostnov/content-provider/tree/server)\r\n","created_at":"2016-08-07T23:27:32Z","updated_at":"2016-08-09T09:53:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"de33b6a5fca7f23be9dc8426a66003264688311b","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/yamblz-native/fragments/pulls/3/commits","review_comments_url":"https://api.github.com/repos/yamblz-native/fragments/pulls/3/comments","review_comment_url":"https://api.github.com/repos/yamblz-native/fragments/pulls/comments{/number}","comments_url":"https://api.github.com/repos/yamblz-native/fragments/issues/3/comments","statuses_url":"https://api.github.com/repos/yamblz-native/fragments/statuses/f070d0fa05c0496dd6f8fc06ea60a6d877f669f9","head":{"label":"valpostnov:master","ref":"master","sha":"f070d0fa05c0496dd6f8fc06ea60a6d877f669f9","user":{"login":"valpostnov","id":18093368,"avatar_url":"https://avatars.githubusercontent.com/u/18093368?v=3","gravatar_id":"","url":"https://api.github.com/users/valpostnov","html_url":"https://github.com/valpostnov","followers_url":"https://api.github.com/users/valpostnov/followers","following_url":"https://api.github.com/users/valpostnov/following{/other_user}","gists_url":"https://api.github.com/users/valpostnov/gists{/gist_id}","starred_url":"https://api.github.com/users/valpostnov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valpostnov/subscriptions","organizations_url":"https://api.github.com/users/valpostnov/orgs","repos_url":"https://api.github.com/users/valpostnov/repos","events_url":"https://api.github.com/users/valpostnov/events{/privacy}","received_events_url":"https://api.github.com/users/valpostnov/received_events","type":"User","site_admin":false},"repo":{"id":64788846,"name":"fragments","full_name":"valpostnov/fragments","owner":{"login":"valpostnov","id":18093368,"avatar_url":"https://avatars.githubusercontent.com/u/18093368?v=3","gravatar_id":"","url":"https://api.github.com/users/valpostnov","html_url":"https://github.com/valpostnov","followers_url":"https://api.github.com/users/valpostnov/followers","following_url":"https://api.github.com/users/valpostnov/following{/other_user}","gists_url":"https://api.github.com/users/valpostnov/gists{/gist_id}","starred_url":"https://api.github.com/users/valpostnov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valpostnov/subscriptions","organizations_url":"https://api.github.com/users/valpostnov/orgs","repos_url":"https://api.github.com/users/valpostnov/repos","events_url":"https://api.github.com/users/valpostnov/events{/privacy}","received_events_url":"https://api.github.com/users/valpostnov/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/valpostnov/fragments","description":"fragments homework","fork":true,"url":"https://api.github.com/repos/valpostnov/fragments","forks_url":"https://api.github.com/repos/valpostnov/fragments/forks","keys_url":"https://api.github.com/repos/valpostnov/fragments/keys{/key_id}","collaborators_url":"https://api.github.com/repos/valpostnov/fragments/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/valpostnov/fragments/teams","hooks_url":"https://api.github.com/repos/valpostnov/fragments/hooks","issue_events_url":"https://api.github.com/repos/valpostnov/fragments/issues/events{/number}","events_url":"https://api.github.com/repos/valpostnov/fragments/events","assignees_url":"https://api.github.com/repos/valpostnov/fragments/assignees{/user}","branches_url":"https://api.github.com/repos/valpostnov/fragments/branches{/branch}","tags_url":"https://api.github.com/repos/valpostnov/fragments/tags","blobs_url":"https://api.github.com/repos/valpostnov/fragments/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/valpostnov/fragments/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/valpostnov/fragments/git/refs{/sha}","trees_url":"https://api.github.com/repos/valpostnov/fragments/git/trees{/sha}","statuses_url":"https://api.github.com/repos/valpostnov/fragments/statuses/{sha}","languages_url":"https://api.github.com/repos/valpostnov/fragments/languages","stargazers_url":"https://api.github.com/repos/valpostnov/fragments/stargazers","contributors_url":"https://api.github.com/repos/valpostnov/fragments/contributors","subscribers_url":"https://api.github.com/repos/valpostnov/fragments/subscribers","subscription_url":"https://api.github.com/repos/valpostnov/fragments/subscription","commits_url":"https://api.github.com/repos/valpostnov/fragments/commits{/sha}","git_commits_url":"https://api.github.com/repos/valpostnov/fragments/git/commits{/sha}","comments_url":"https://api.github.com/repos/valpostnov/fragments/comments{/number}","issue_comment_url":"https://api.github.com/repos/valpostnov/fragments/issues/comments{/number}","contents_url":"https://api.github.com/repos/valpostnov/fragments/contents/{+path}","compare_url":"https://api.github.com/repos/valpostnov/fragments/compare/{base}...{head}","merges_url":"https://api.github.com/repos/valpostnov/fragments/merges","archive_url":"https://api.github.com/repos/valpostnov/fragments/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/valpostnov/fragments/downloads","issues_url":"https://api.github.com/repos/valpostnov/fragments/issues{/number}","pulls_url":"https://api.github.com/repos/valpostnov/fragments/pulls{/number}","milestones_url":"https://api.github.com/repos/valpostnov/fragments/milestones{/number}","notifications_url":"https://api.github.com/repos/valpostnov/fragments/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/valpostnov/fragments/labels{/name}","releases_url":"https://api.github.com/repos/valpostnov/fragments/releases{/id}","deployments_url":"https://api.github.com/repos/valpostnov/fragments/deployments","created_at":"2016-08-02T20:06:19Z","updated_at":"2016-08-02T20:06:20Z","pushed_at":"2016-08-08T23:57:20Z","git_url":"git://github.com/valpostnov/fragments.git","ssh_url":"git@github.com:valpostnov/fragments.git","clone_url":"https://github.com/valpostnov/fragments.git","svn_url":"https://github.com/valpostnov/fragments","homepage":null,"size":2276,"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":"yamblz-native:master","ref":"master","sha":"9041fcf8dddd13d7a4c122036d2353e6cf7ac5a6","user":{"login":"yamblz-native","id":20421172,"avatar_url":"https://avatars.githubusercontent.com/u/20421172?v=3","gravatar_id":"","url":"https://api.github.com/users/yamblz-native","html_url":"https://github.com/yamblz-native","followers_url":"https://api.github.com/users/yamblz-native/followers","following_url":"https://api.github.com/users/yamblz-native/following{/other_user}","gists_url":"https://api.github.com/users/yamblz-native/gists{/gist_id}","starred_url":"https://api.github.com/users/yamblz-native/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yamblz-native/subscriptions","organizations_url":"https://api.github.com/users/yamblz-native/orgs","repos_url":"https://api.github.com/users/yamblz-native/repos","events_url":"https://api.github.com/users/yamblz-native/events{/privacy}","received_events_url":"https://api.github.com/users/yamblz-native/received_events","type":"Organization","site_admin":false},"repo":{"id":64746710,"name":"fragments","full_name":"yamblz-native/fragments","owner":{"login":"yamblz-native","id":20421172,"avatar_url":"https://avatars.githubusercontent.com/u/20421172?v=3","gravatar_id":"","url":"https://api.github.com/users/yamblz-native","html_url":"https://github.com/yamblz-native","followers_url":"https://api.github.com/users/yamblz-native/followers","following_url":"https://api.github.com/users/yamblz-native/following{/other_user}","gists_url":"https://api.github.com/users/yamblz-native/gists{/gist_id}","starred_url":"https://api.github.com/users/yamblz-native/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yamblz-native/subscriptions","organizations_url":"https://api.github.com/users/yamblz-native/orgs","repos_url":"https://api.github.com/users/yamblz-native/repos","events_url":"https://api.github.com/users/yamblz-native/events{/privacy}","received_events_url":"https://api.github.com/users/yamblz-native/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/yamblz-native/fragments","description":"fragments homework","fork":false,"url":"https://api.github.com/repos/yamblz-native/fragments","forks_url":"https://api.github.com/repos/yamblz-native/fragments/forks","keys_url":"https://api.github.com/repos/yamblz-native/fragments/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yamblz-native/fragments/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yamblz-native/fragments/teams","hooks_url":"https://api.github.com/repos/yamblz-native/fragments/hooks","issue_events_url":"https://api.github.com/repos/yamblz-native/fragments/issues/events{/number}","events_url":"https://api.github.com/repos/yamblz-native/fragments/events","assignees_url":"https://api.github.com/repos/yamblz-native/fragments/assignees{/user}","branches_url":"https://api.github.com/repos/yamblz-native/fragments/branches{/branch}","tags_url":"https://api.github.com/repos/yamblz-native/fragments/tags","blobs_url":"https://api.github.com/repos/yamblz-native/fragments/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yamblz-native/fragments/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yamblz-native/fragments/git/refs{/sha}","trees_url":"https://api.github.com/repos/yamblz-native/fragments/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yamblz-native/fragments/statuses/{sha}","languages_url":"https://api.github.com/repos/yamblz-native/fragments/languages","stargazers_url":"https://api.github.com/repos/yamblz-native/fragments/stargazers","contributors_url":"https://api.github.com/repos/yamblz-native/fragments/contributors","subscribers_url":"https://api.github.com/repos/yamblz-native/fragments/subscribers","subscription_url":"https://api.github.com/repos/yamblz-native/fragments/subscription","commits_url":"https://api.github.com/repos/yamblz-native/fragments/commits{/sha}","git_commits_url":"https://api.github.com/repos/yamblz-native/fragments/git/commits{/sha}","comments_url":"https://api.github.com/repos/yamblz-native/fragments/comments{/number}","issue_comment_url":"https://api.github.com/repos/yamblz-native/fragments/issues/comments{/number}","contents_url":"https://api.github.com/repos/yamblz-native/fragments/contents/{+path}","compare_url":"https://api.github.com/repos/yamblz-native/fragments/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yamblz-native/fragments/merges","archive_url":"https://api.github.com/repos/yamblz-native/fragments/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yamblz-native/fragments/downloads","issues_url":"https://api.github.com/repos/yamblz-native/fragments/issues{/number}","pulls_url":"https://api.github.com/repos/yamblz-native/fragments/pulls{/number}","milestones_url":"https://api.github.com/repos/yamblz-native/fragments/milestones{/number}","notifications_url":"https://api.github.com/repos/yamblz-native/fragments/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yamblz-native/fragments/labels{/name}","releases_url":"https://api.github.com/repos/yamblz-native/fragments/releases{/id}","deployments_url":"https://api.github.com/repos/yamblz-native/fragments/deployments","created_at":"2016-08-02T10:10:49Z","updated_at":"2016-08-02T10:11:12Z","pushed_at":"2016-08-09T07:15:25Z","git_url":"git://github.com/yamblz-native/fragments.git","ssh_url":"git@github.com:yamblz-native/fragments.git","clone_url":"https://github.com/yamblz-native/fragments.git","svn_url":"https://github.com/yamblz-native/fragments","homepage":null,"size":2245,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":15,"mirror_url":null,"open_issues_count":5,"forks":15,"open_issues":5,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/yamblz-native/fragments/pulls/3"},"html":{"href":"https://github.com/yamblz-native/fragments/pull/3"},"issue":{"href":"https://api.github.com/repos/yamblz-native/fragments/issues/3"},"comments":{"href":"https://api.github.com/repos/yamblz-native/fragments/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/yamblz-native/fragments/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/yamblz-native/fragments/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/yamblz-native/fragments/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/yamblz-native/fragments/statuses/f070d0fa05c0496dd6f8fc06ea60a6d877f669f9"}}}}
{"actor":{"display_login":"valpostnov"}}