GitHub PullRequestReviewCommentEvent at 2014-11-10 11:04:25
Repository: glide
Actor: pavlospt
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/bumptech/glide/pulls/comments/20076026","id":20076026,"diff_hunk":"@@ -0,0 +1,104 @@\n+package com.bumptech.glide.request.target;\n+\n+import android.appwidget.AppWidgetManager;\n+import android.content.ComponentName;\n+import android.content.Context;\n+import android.graphics.Bitmap;\n+import android.support.annotation.IdRes;\n+import android.support.annotation.NonNull;\n+import android.widget.RemoteViews;\n+\n+import com.bumptech.glide.request.animation.GlideAnimation;\n+\n+public abstract class RemoteViewsTarget<Z> extends BaseTarget<Z> {\n+\n+    private int mViewId;\n+    private int mWidth, mHeight;\n+    private int[] mWidgetIds;\n+    private final RemoteViews mRemoteViews;\n+    private AppWidgetManager mAppWidgetManager;\n+    private Context mContext;\n+    private ComponentName mComponentName = null;\n+\n+    /**\n+     *\n+     * Constructor using an int array of widgetIds,\n+     * to get a handle on the Widget,\n+     * in order to update it.\n+     *\n+     * @param remoteViews RemoteViews object which contains the ImageView that will load the bitmap.\n+     * @param context Context to use in the AppWidgetManager initialization.\n+     * @param viewId The id of the ImageView view that will load the image.\n+     * @param width Desired width of the bitmap that will be loaded.(Need to be manually set because of RemoteViews limitations.)\n+     * @param height Desired height of the bitmap that will be loaded. (Need to be manually set because of RemoteViews limitations.)\n+     * @param widgetIds The int[] that contains the widget ids of an application.\n+     * */\n+    public RemoteViewsTarget(@NonNull RemoteViews remoteViews,\n+                             @NonNull Context context,\n+                             @IdRes int viewId,\n+                             int width,\n+                             int height,\n+                             int[] widgetIds) {","path":"library/src/main/java/com/bumptech/glide/request/target/RemoteViewsTarget.java","position":41,"original_position":41,"commit_id":"47474269d7ad4d814ebdd899eba21b467437dd82","original_commit_id":"47474269d7ad4d814ebdd899eba21b467437dd82","user":{"login":"pavlospt","id":1070871,"avatar_url":"https://avatars.githubusercontent.com/u/1070871?v=3","gravatar_id":"","url":"https://api.github.com/users/pavlospt","html_url":"https://github.com/pavlospt","followers_url":"https://api.github.com/users/pavlospt/followers","following_url":"https://api.github.com/users/pavlospt/following{/other_user}","gists_url":"https://api.github.com/users/pavlospt/gists{/gist_id}","starred_url":"https://api.github.com/users/pavlospt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pavlospt/subscriptions","organizations_url":"https://api.github.com/users/pavlospt/orgs","repos_url":"https://api.github.com/users/pavlospt/repos","events_url":"https://api.github.com/users/pavlospt/events{/privacy}","received_events_url":"https://api.github.com/users/pavlospt/received_events","type":"User","site_admin":false},"body":"Hmm sorry but can you explain this one too, a little bit more? ","created_at":"2014-11-10T11:04:25Z","updated_at":"2014-11-10T11:04:25Z","html_url":"https://github.com/bumptech/glide/pull/248#discussion_r20076026","pull_request_url":"https://api.github.com/repos/bumptech/glide/pulls/248","_links":{"self":{"href":"https://api.github.com/repos/bumptech/glide/pulls/comments/20076026"},"html":{"href":"https://github.com/bumptech/glide/pull/248#discussion_r20076026"},"pull_request":{"href":"https://api.github.com/repos/bumptech/glide/pulls/248"}}},"pull_request":{"url":"https://api.github.com/repos/bumptech/glide/pulls/248","id":24139100,"html_url":"https://github.com/bumptech/glide/pull/248","diff_url":"https://github.com/bumptech/glide/pull/248.diff","patch_url":"https://github.com/bumptech/glide/pull/248.patch","issue_url":"https://api.github.com/repos/bumptech/glide/issues/248","number":248,"state":"open","locked":false,"title":"RemoteViewsTarget feature requested on #242","user":{"login":"pavlospt","id":1070871,"avatar_url":"https://avatars.githubusercontent.com/u/1070871?v=3","gravatar_id":"","url":"https://api.github.com/users/pavlospt","html_url":"https://github.com/pavlospt","followers_url":"https://api.github.com/users/pavlospt/followers","following_url":"https://api.github.com/users/pavlospt/following{/other_user}","gists_url":"https://api.github.com/users/pavlospt/gists{/gist_id}","starred_url":"https://api.github.com/users/pavlospt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pavlospt/subscriptions","organizations_url":"https://api.github.com/users/pavlospt/orgs","repos_url":"https://api.github.com/users/pavlospt/repos","events_url":"https://api.github.com/users/pavlospt/events{/privacy}","received_events_url":"https://api.github.com/users/pavlospt/received_events","type":"User","site_admin":false},"body":"Ability to load a bitmap into an ImageView of a Widget using\r\nRemoteViews.\r\n\r\nExample of usage on the following gist\r\nhttps://gist.github.com/pavlospt/00242d5102ac8f76e169","created_at":"2014-11-10T10:52:19Z","updated_at":"2014-11-10T11:04:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"49799a8f68ea44939a4d56423a0bcbc0e2d50138","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/bumptech/glide/pulls/248/commits","review_comments_url":"https://api.github.com/repos/bumptech/glide/pulls/248/comments","review_comment_url":"https://api.github.com/repos/bumptech/glide/pulls/comments/{number}","comments_url":"https://api.github.com/repos/bumptech/glide/issues/248/comments","statuses_url":"https://api.github.com/repos/bumptech/glide/statuses/47474269d7ad4d814ebdd899eba21b467437dd82","head":{"label":"pavlospt:master","ref":"master","sha":"47474269d7ad4d814ebdd899eba21b467437dd82","user":{"login":"pavlospt","id":1070871,"avatar_url":"https://avatars.githubusercontent.com/u/1070871?v=3","gravatar_id":"","url":"https://api.github.com/users/pavlospt","html_url":"https://github.com/pavlospt","followers_url":"https://api.github.com/users/pavlospt/followers","following_url":"https://api.github.com/users/pavlospt/following{/other_user}","gists_url":"https://api.github.com/users/pavlospt/gists{/gist_id}","starred_url":"https://api.github.com/users/pavlospt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pavlospt/subscriptions","organizations_url":"https://api.github.com/users/pavlospt/orgs","repos_url":"https://api.github.com/users/pavlospt/repos","events_url":"https://api.github.com/users/pavlospt/events{/privacy}","received_events_url":"https://api.github.com/users/pavlospt/received_events","type":"User","site_admin":false},"repo":{"id":26432050,"name":"glide","full_name":"pavlospt/glide","owner":{"login":"pavlospt","id":1070871,"avatar_url":"https://avatars.githubusercontent.com/u/1070871?v=3","gravatar_id":"","url":"https://api.github.com/users/pavlospt","html_url":"https://github.com/pavlospt","followers_url":"https://api.github.com/users/pavlospt/followers","following_url":"https://api.github.com/users/pavlospt/following{/other_user}","gists_url":"https://api.github.com/users/pavlospt/gists{/gist_id}","starred_url":"https://api.github.com/users/pavlospt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pavlospt/subscriptions","organizations_url":"https://api.github.com/users/pavlospt/orgs","repos_url":"https://api.github.com/users/pavlospt/repos","events_url":"https://api.github.com/users/pavlospt/events{/privacy}","received_events_url":"https://api.github.com/users/pavlospt/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pavlospt/glide","description":"An image loading and caching library for Android focused on smooth scrolling","fork":true,"url":"https://api.github.com/repos/pavlospt/glide","forks_url":"https://api.github.com/repos/pavlospt/glide/forks","keys_url":"https://api.github.com/repos/pavlospt/glide/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pavlospt/glide/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pavlospt/glide/teams","hooks_url":"https://api.github.com/repos/pavlospt/glide/hooks","issue_events_url":"https://api.github.com/repos/pavlospt/glide/issues/events{/number}","events_url":"https://api.github.com/repos/pavlospt/glide/events","assignees_url":"https://api.github.com/repos/pavlospt/glide/assignees{/user}","branches_url":"https://api.github.com/repos/pavlospt/glide/branches{/branch}","tags_url":"https://api.github.com/repos/pavlospt/glide/tags","blobs_url":"https://api.github.com/repos/pavlospt/glide/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pavlospt/glide/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pavlospt/glide/git/refs{/sha}","trees_url":"https://api.github.com/repos/pavlospt/glide/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pavlospt/glide/statuses/{sha}","languages_url":"https://api.github.com/repos/pavlospt/glide/languages","stargazers_url":"https://api.github.com/repos/pavlospt/glide/stargazers","contributors_url":"https://api.github.com/repos/pavlospt/glide/contributors","subscribers_url":"https://api.github.com/repos/pavlospt/glide/subscribers","subscription_url":"https://api.github.com/repos/pavlospt/glide/subscription","commits_url":"https://api.github.com/repos/pavlospt/glide/commits{/sha}","git_commits_url":"https://api.github.com/repos/pavlospt/glide/git/commits{/sha}","comments_url":"https://api.github.com/repos/pavlospt/glide/comments{/number}","issue_comment_url":"https://api.github.com/repos/pavlospt/glide/issues/comments/{number}","contents_url":"https://api.github.com/repos/pavlospt/glide/contents/{+path}","compare_url":"https://api.github.com/repos/pavlospt/glide/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pavlospt/glide/merges","archive_url":"https://api.github.com/repos/pavlospt/glide/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pavlospt/glide/downloads","issues_url":"https://api.github.com/repos/pavlospt/glide/issues{/number}","pulls_url":"https://api.github.com/repos/pavlospt/glide/pulls{/number}","milestones_url":"https://api.github.com/repos/pavlospt/glide/milestones{/number}","notifications_url":"https://api.github.com/repos/pavlospt/glide/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pavlospt/glide/labels{/name}","releases_url":"https://api.github.com/repos/pavlospt/glide/releases{/id}","created_at":"2014-11-10T10:35:42Z","updated_at":"2014-11-10T10:51:27Z","pushed_at":"2014-11-10T10:51:26Z","git_url":"git://github.com/pavlospt/glide.git","ssh_url":"git@github.com:pavlospt/glide.git","clone_url":"https://github.com/pavlospt/glide.git","svn_url":"https://github.com/pavlospt/glide","homepage":null,"size":23132,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"bumptech:master","ref":"master","sha":"0ccd7b41a2185e18550d18b76d4ed85bf5709333","user":{"login":"bumptech","id":423539,"avatar_url":"https://avatars.githubusercontent.com/u/423539?v=3","gravatar_id":"","url":"https://api.github.com/users/bumptech","html_url":"https://github.com/bumptech","followers_url":"https://api.github.com/users/bumptech/followers","following_url":"https://api.github.com/users/bumptech/following{/other_user}","gists_url":"https://api.github.com/users/bumptech/gists{/gist_id}","starred_url":"https://api.github.com/users/bumptech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bumptech/subscriptions","organizations_url":"https://api.github.com/users/bumptech/orgs","repos_url":"https://api.github.com/users/bumptech/repos","events_url":"https://api.github.com/users/bumptech/events{/privacy}","received_events_url":"https://api.github.com/users/bumptech/received_events","type":"Organization","site_admin":false},"repo":{"id":11267509,"name":"glide","full_name":"bumptech/glide","owner":{"login":"bumptech","id":423539,"avatar_url":"https://avatars.githubusercontent.com/u/423539?v=3","gravatar_id":"","url":"https://api.github.com/users/bumptech","html_url":"https://github.com/bumptech","followers_url":"https://api.github.com/users/bumptech/followers","following_url":"https://api.github.com/users/bumptech/following{/other_user}","gists_url":"https://api.github.com/users/bumptech/gists{/gist_id}","starred_url":"https://api.github.com/users/bumptech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bumptech/subscriptions","organizations_url":"https://api.github.com/users/bumptech/orgs","repos_url":"https://api.github.com/users/bumptech/repos","events_url":"https://api.github.com/users/bumptech/events{/privacy}","received_events_url":"https://api.github.com/users/bumptech/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/bumptech/glide","description":"An image loading and caching library for Android focused on smooth scrolling","fork":false,"url":"https://api.github.com/repos/bumptech/glide","forks_url":"https://api.github.com/repos/bumptech/glide/forks","keys_url":"https://api.github.com/repos/bumptech/glide/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bumptech/glide/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bumptech/glide/teams","hooks_url":"https://api.github.com/repos/bumptech/glide/hooks","issue_events_url":"https://api.github.com/repos/bumptech/glide/issues/events{/number}","events_url":"https://api.github.com/repos/bumptech/glide/events","assignees_url":"https://api.github.com/repos/bumptech/glide/assignees{/user}","branches_url":"https://api.github.com/repos/bumptech/glide/branches{/branch}","tags_url":"https://api.github.com/repos/bumptech/glide/tags","blobs_url":"https://api.github.com/repos/bumptech/glide/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bumptech/glide/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bumptech/glide/git/refs{/sha}","trees_url":"https://api.github.com/repos/bumptech/glide/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bumptech/glide/statuses/{sha}","languages_url":"https://api.github.com/repos/bumptech/glide/languages","stargazers_url":"https://api.github.com/repos/bumptech/glide/stargazers","contributors_url":"https://api.github.com/repos/bumptech/glide/contributors","subscribers_url":"https://api.github.com/repos/bumptech/glide/subscribers","subscription_url":"https://api.github.com/repos/bumptech/glide/subscription","commits_url":"https://api.github.com/repos/bumptech/glide/commits{/sha}","git_commits_url":"https://api.github.com/repos/bumptech/glide/git/commits{/sha}","comments_url":"https://api.github.com/repos/bumptech/glide/comments{/number}","issue_comment_url":"https://api.github.com/repos/bumptech/glide/issues/comments/{number}","contents_url":"https://api.github.com/repos/bumptech/glide/contents/{+path}","compare_url":"https://api.github.com/repos/bumptech/glide/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bumptech/glide/merges","archive_url":"https://api.github.com/repos/bumptech/glide/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bumptech/glide/downloads","issues_url":"https://api.github.com/repos/bumptech/glide/issues{/number}","pulls_url":"https://api.github.com/repos/bumptech/glide/pulls{/number}","milestones_url":"https://api.github.com/repos/bumptech/glide/milestones{/number}","notifications_url":"https://api.github.com/repos/bumptech/glide/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bumptech/glide/labels{/name}","releases_url":"https://api.github.com/repos/bumptech/glide/releases{/id}","created_at":"2013-07-08T22:52:33Z","updated_at":"2014-11-10T10:26:40Z","pushed_at":"2014-11-07T21:05:34Z","git_url":"git://github.com/bumptech/glide.git","ssh_url":"git@github.com:bumptech/glide.git","clone_url":"https://github.com/bumptech/glide.git","svn_url":"https://github.com/bumptech/glide","homepage":null,"size":23132,"stargazers_count":1447,"watchers_count":1447,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":219,"mirror_url":null,"open_issues_count":41,"forks":219,"open_issues":41,"watchers":1447,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bumptech/glide/pulls/248"},"html":{"href":"https://github.com/bumptech/glide/pull/248"},"issue":{"href":"https://api.github.com/repos/bumptech/glide/issues/248"},"comments":{"href":"https://api.github.com/repos/bumptech/glide/issues/248/comments"},"review_comments":{"href":"https://api.github.com/repos/bumptech/glide/pulls/248/comments"},"review_comment":{"href":"https://api.github.com/repos/bumptech/glide/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/bumptech/glide/pulls/248/commits"},"statuses":{"href":"https://api.github.com/repos/bumptech/glide/statuses/47474269d7ad4d814ebdd899eba21b467437dd82"}}}}