{"action":"created","comment":{"url":"https://api.github.com/repos/andreycooper/custom-views/pulls/comments/29575102","id":29575102,"diff_hunk":"@@ -0,0 +1,80 @@\n+package com.weezlabs.customviews;\n+\n+import android.content.Context;\n+import android.content.pm.ApplicationInfo;\n+import android.graphics.drawable.Drawable;\n+import android.view.View;\n+import android.view.ViewGroup;\n+import android.widget.BaseAdapter;\n+import android.widget.Toast;\n+\n+import com.weezlabs.customviews.view.ItemView;\n+\n+import java.util.List;\n+\n+\n+public class AppListAdapter extends BaseAdapter {\n+    private static final String WHITE_SPACE = \" \";\n+    private Context mContext;\n+    private List<ApplicationInfo> mAppsList;\n+\n+    public AppListAdapter(Context context, List<ApplicationInfo> objects) {\n+        mContext = context;\n+        mAppsList = objects;\n+    }\n+\n+    @Override\n+    public int getCount() {\n+        return mAppsList.size();\n+    }\n+\n+    @Override\n+    public ApplicationInfo getItem(int position) {\n+        return mAppsList.get(position);\n+    }\n+\n+    @Override\n+    public long getItemId(int position) {\n+        return position;\n+    }\n+\n+    @Override\n+    public View getView(int position, View convertView, ViewGroup parent) {\n+        ItemView row = (ItemView) convertView;\n+        if (row == null) {\n+            row = new ItemView(getContext());\n+        }\n+\n+        final ApplicationInfo applicationInfo = getItem(position);\n+\n+        String title = applicationInfo.loadLabel(getContext().getPackageManager()).toString();\n+        row.setTitleText(title);\n+\n+        String details = getContext().getString(R.string.label_item_text_details_package_name)","path":"app/src/main/java/com/weezlabs/customviews/AppListAdapter.java","position":53,"original_position":53,"commit_id":"177b62ebc3776ad0c815c9923c770e0e7e06ad74","original_commit_id":"177b62ebc3776ad0c815c9923c770e0e7e06ad74","user":{"login":"vfedorenko","id":1837446,"avatar_url":"https://avatars.githubusercontent.com/u/1837446?v=3","gravatar_id":"","url":"https://api.github.com/users/vfedorenko","html_url":"https://github.com/vfedorenko","followers_url":"https://api.github.com/users/vfedorenko/followers","following_url":"https://api.github.com/users/vfedorenko/following{/other_user}","gists_url":"https://api.github.com/users/vfedorenko/gists{/gist_id}","starred_url":"https://api.github.com/users/vfedorenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vfedorenko/subscriptions","organizations_url":"https://api.github.com/users/vfedorenko/orgs","repos_url":"https://api.github.com/users/vfedorenko/repos","events_url":"https://api.github.com/users/vfedorenko/events{/privacy}","received_events_url":"https://api.github.com/users/vfedorenko/received_events","type":"User","site_admin":false},"body":"It's better to use string modificators here. Just create \"Package: %s Dir: %s\" string in resourses and then call getString(R.string.id, packageName, directory)","created_at":"2015-05-04T09:51:20Z","updated_at":"2015-05-04T09:51:20Z","html_url":"https://github.com/andreycooper/custom-views/pull/1#discussion_r29575102","pull_request_url":"https://api.github.com/repos/andreycooper/custom-views/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/andreycooper/custom-views/pulls/comments/29575102"},"html":{"href":"https://github.com/andreycooper/custom-views/pull/1#discussion_r29575102"},"pull_request":{"href":"https://api.github.com/repos/andreycooper/custom-views/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/andreycooper/custom-views/pulls/1","id":34242864,"html_url":"https://github.com/andreycooper/custom-views/pull/1","diff_url":"https://github.com/andreycooper/custom-views/pull/1.diff","patch_url":"https://github.com/andreycooper/custom-views/pull/1.patch","issue_url":"https://api.github.com/repos/andreycooper/custom-views/issues/1","number":1,"state":"open","locked":false,"title":"[RM_19477] custom view","user":{"login":"andreycooper","id":2779412,"avatar_url":"https://avatars.githubusercontent.com/u/2779412?v=3","gravatar_id":"","url":"https://api.github.com/users/andreycooper","html_url":"https://github.com/andreycooper","followers_url":"https://api.github.com/users/andreycooper/followers","following_url":"https://api.github.com/users/andreycooper/following{/other_user}","gists_url":"https://api.github.com/users/andreycooper/gists{/gist_id}","starred_url":"https://api.github.com/users/andreycooper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreycooper/subscriptions","organizations_url":"https://api.github.com/users/andreycooper/orgs","repos_url":"https://api.github.com/users/andreycooper/repos","events_url":"https://api.github.com/users/andreycooper/events{/privacy}","received_events_url":"https://api.github.com/users/andreycooper/received_events","type":"User","site_admin":false},"body":"http://redmine.weezlabs.com:8100/redmine/issues/19477","created_at":"2015-04-28T08:14:00Z","updated_at":"2015-05-04T09:51:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4ac620b0530ff66ef912218f3964d9fbdb2d42d1","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/andreycooper/custom-views/pulls/1/commits","review_comments_url":"https://api.github.com/repos/andreycooper/custom-views/pulls/1/comments","review_comment_url":"https://api.github.com/repos/andreycooper/custom-views/pulls/comments{/number}","comments_url":"https://api.github.com/repos/andreycooper/custom-views/issues/1/comments","statuses_url":"https://api.github.com/repos/andreycooper/custom-views/statuses/177b62ebc3776ad0c815c9923c770e0e7e06ad74","head":{"label":"andreycooper:RM_19477_custom_view","ref":"RM_19477_custom_view","sha":"177b62ebc3776ad0c815c9923c770e0e7e06ad74","user":{"login":"andreycooper","id":2779412,"avatar_url":"https://avatars.githubusercontent.com/u/2779412?v=3","gravatar_id":"","url":"https://api.github.com/users/andreycooper","html_url":"https://github.com/andreycooper","followers_url":"https://api.github.com/users/andreycooper/followers","following_url":"https://api.github.com/users/andreycooper/following{/other_user}","gists_url":"https://api.github.com/users/andreycooper/gists{/gist_id}","starred_url":"https://api.github.com/users/andreycooper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreycooper/subscriptions","organizations_url":"https://api.github.com/users/andreycooper/orgs","repos_url":"https://api.github.com/users/andreycooper/repos","events_url":"https://api.github.com/users/andreycooper/events{/privacy}","received_events_url":"https://api.github.com/users/andreycooper/received_events","type":"User","site_admin":false},"repo":{"id":34662307,"name":"custom-views","full_name":"andreycooper/custom-views","owner":{"login":"andreycooper","id":2779412,"avatar_url":"https://avatars.githubusercontent.com/u/2779412?v=3","gravatar_id":"","url":"https://api.github.com/users/andreycooper","html_url":"https://github.com/andreycooper","followers_url":"https://api.github.com/users/andreycooper/followers","following_url":"https://api.github.com/users/andreycooper/following{/other_user}","gists_url":"https://api.github.com/users/andreycooper/gists{/gist_id}","starred_url":"https://api.github.com/users/andreycooper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreycooper/subscriptions","organizations_url":"https://api.github.com/users/andreycooper/orgs","repos_url":"https://api.github.com/users/andreycooper/repos","events_url":"https://api.github.com/users/andreycooper/events{/privacy}","received_events_url":"https://api.github.com/users/andreycooper/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/andreycooper/custom-views","description":"","fork":false,"url":"https://api.github.com/repos/andreycooper/custom-views","forks_url":"https://api.github.com/repos/andreycooper/custom-views/forks","keys_url":"https://api.github.com/repos/andreycooper/custom-views/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andreycooper/custom-views/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andreycooper/custom-views/teams","hooks_url":"https://api.github.com/repos/andreycooper/custom-views/hooks","issue_events_url":"https://api.github.com/repos/andreycooper/custom-views/issues/events{/number}","events_url":"https://api.github.com/repos/andreycooper/custom-views/events","assignees_url":"https://api.github.com/repos/andreycooper/custom-views/assignees{/user}","branches_url":"https://api.github.com/repos/andreycooper/custom-views/branches{/branch}","tags_url":"https://api.github.com/repos/andreycooper/custom-views/tags","blobs_url":"https://api.github.com/repos/andreycooper/custom-views/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andreycooper/custom-views/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andreycooper/custom-views/git/refs{/sha}","trees_url":"https://api.github.com/repos/andreycooper/custom-views/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andreycooper/custom-views/statuses/{sha}","languages_url":"https://api.github.com/repos/andreycooper/custom-views/languages","stargazers_url":"https://api.github.com/repos/andreycooper/custom-views/stargazers","contributors_url":"https://api.github.com/repos/andreycooper/custom-views/contributors","subscribers_url":"https://api.github.com/repos/andreycooper/custom-views/subscribers","subscription_url":"https://api.github.com/repos/andreycooper/custom-views/subscription","commits_url":"https://api.github.com/repos/andreycooper/custom-views/commits{/sha}","git_commits_url":"https://api.github.com/repos/andreycooper/custom-views/git/commits{/sha}","comments_url":"https://api.github.com/repos/andreycooper/custom-views/comments{/number}","issue_comment_url":"https://api.github.com/repos/andreycooper/custom-views/issues/comments{/number}","contents_url":"https://api.github.com/repos/andreycooper/custom-views/contents/{+path}","compare_url":"https://api.github.com/repos/andreycooper/custom-views/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andreycooper/custom-views/merges","archive_url":"https://api.github.com/repos/andreycooper/custom-views/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andreycooper/custom-views/downloads","issues_url":"https://api.github.com/repos/andreycooper/custom-views/issues{/number}","pulls_url":"https://api.github.com/repos/andreycooper/custom-views/pulls{/number}","milestones_url":"https://api.github.com/repos/andreycooper/custom-views/milestones{/number}","notifications_url":"https://api.github.com/repos/andreycooper/custom-views/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andreycooper/custom-views/labels{/name}","releases_url":"https://api.github.com/repos/andreycooper/custom-views/releases{/id}","created_at":"2015-04-27T11:19:20Z","updated_at":"2015-04-27T11:40:06Z","pushed_at":"2015-04-28T08:14:01Z","git_url":"git://github.com/andreycooper/custom-views.git","ssh_url":"git@github.com:andreycooper/custom-views.git","clone_url":"https://github.com/andreycooper/custom-views.git","svn_url":"https://github.com/andreycooper/custom-views","homepage":null,"size":0,"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":"andreycooper:master","ref":"master","sha":"58c677f15f6d9ffe981326791b6d48ff521a6834","user":{"login":"andreycooper","id":2779412,"avatar_url":"https://avatars.githubusercontent.com/u/2779412?v=3","gravatar_id":"","url":"https://api.github.com/users/andreycooper","html_url":"https://github.com/andreycooper","followers_url":"https://api.github.com/users/andreycooper/followers","following_url":"https://api.github.com/users/andreycooper/following{/other_user}","gists_url":"https://api.github.com/users/andreycooper/gists{/gist_id}","starred_url":"https://api.github.com/users/andreycooper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreycooper/subscriptions","organizations_url":"https://api.github.com/users/andreycooper/orgs","repos_url":"https://api.github.com/users/andreycooper/repos","events_url":"https://api.github.com/users/andreycooper/events{/privacy}","received_events_url":"https://api.github.com/users/andreycooper/received_events","type":"User","site_admin":false},"repo":{"id":34662307,"name":"custom-views","full_name":"andreycooper/custom-views","owner":{"login":"andreycooper","id":2779412,"avatar_url":"https://avatars.githubusercontent.com/u/2779412?v=3","gravatar_id":"","url":"https://api.github.com/users/andreycooper","html_url":"https://github.com/andreycooper","followers_url":"https://api.github.com/users/andreycooper/followers","following_url":"https://api.github.com/users/andreycooper/following{/other_user}","gists_url":"https://api.github.com/users/andreycooper/gists{/gist_id}","starred_url":"https://api.github.com/users/andreycooper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreycooper/subscriptions","organizations_url":"https://api.github.com/users/andreycooper/orgs","repos_url":"https://api.github.com/users/andreycooper/repos","events_url":"https://api.github.com/users/andreycooper/events{/privacy}","received_events_url":"https://api.github.com/users/andreycooper/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/andreycooper/custom-views","description":"","fork":false,"url":"https://api.github.com/repos/andreycooper/custom-views","forks_url":"https://api.github.com/repos/andreycooper/custom-views/forks","keys_url":"https://api.github.com/repos/andreycooper/custom-views/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andreycooper/custom-views/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andreycooper/custom-views/teams","hooks_url":"https://api.github.com/repos/andreycooper/custom-views/hooks","issue_events_url":"https://api.github.com/repos/andreycooper/custom-views/issues/events{/number}","events_url":"https://api.github.com/repos/andreycooper/custom-views/events","assignees_url":"https://api.github.com/repos/andreycooper/custom-views/assignees{/user}","branches_url":"https://api.github.com/repos/andreycooper/custom-views/branches{/branch}","tags_url":"https://api.github.com/repos/andreycooper/custom-views/tags","blobs_url":"https://api.github.com/repos/andreycooper/custom-views/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andreycooper/custom-views/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andreycooper/custom-views/git/refs{/sha}","trees_url":"https://api.github.com/repos/andreycooper/custom-views/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andreycooper/custom-views/statuses/{sha}","languages_url":"https://api.github.com/repos/andreycooper/custom-views/languages","stargazers_url":"https://api.github.com/repos/andreycooper/custom-views/stargazers","contributors_url":"https://api.github.com/repos/andreycooper/custom-views/contributors","subscribers_url":"https://api.github.com/repos/andreycooper/custom-views/subscribers","subscription_url":"https://api.github.com/repos/andreycooper/custom-views/subscription","commits_url":"https://api.github.com/repos/andreycooper/custom-views/commits{/sha}","git_commits_url":"https://api.github.com/repos/andreycooper/custom-views/git/commits{/sha}","comments_url":"https://api.github.com/repos/andreycooper/custom-views/comments{/number}","issue_comment_url":"https://api.github.com/repos/andreycooper/custom-views/issues/comments{/number}","contents_url":"https://api.github.com/repos/andreycooper/custom-views/contents/{+path}","compare_url":"https://api.github.com/repos/andreycooper/custom-views/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andreycooper/custom-views/merges","archive_url":"https://api.github.com/repos/andreycooper/custom-views/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andreycooper/custom-views/downloads","issues_url":"https://api.github.com/repos/andreycooper/custom-views/issues{/number}","pulls_url":"https://api.github.com/repos/andreycooper/custom-views/pulls{/number}","milestones_url":"https://api.github.com/repos/andreycooper/custom-views/milestones{/number}","notifications_url":"https://api.github.com/repos/andreycooper/custom-views/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andreycooper/custom-views/labels{/name}","releases_url":"https://api.github.com/repos/andreycooper/custom-views/releases{/id}","created_at":"2015-04-27T11:19:20Z","updated_at":"2015-04-27T11:40:06Z","pushed_at":"2015-04-28T08:14:01Z","git_url":"git://github.com/andreycooper/custom-views.git","ssh_url":"git@github.com:andreycooper/custom-views.git","clone_url":"https://github.com/andreycooper/custom-views.git","svn_url":"https://github.com/andreycooper/custom-views","homepage":null,"size":0,"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/andreycooper/custom-views/pulls/1"},"html":{"href":"https://github.com/andreycooper/custom-views/pull/1"},"issue":{"href":"https://api.github.com/repos/andreycooper/custom-views/issues/1"},"comments":{"href":"https://api.github.com/repos/andreycooper/custom-views/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/andreycooper/custom-views/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/andreycooper/custom-views/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/andreycooper/custom-views/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/andreycooper/custom-views/statuses/177b62ebc3776ad0c815c9923c770e0e7e06ad74"}}}}