{"action":"created","comment":{"url":"https://api.github.com/repos/Catrobat/Catroid/pulls/comments/31876262","id":31876262,"diff_hunk":"@@ -0,0 +1,335 @@\n+/*\n+ * Catroid: An on-device visual programming system for Android devices\n+ * Copyright (C) 2010-2015 The Catrobat Team\n+ * (<http://developer.catrobat.org/credits>)\n+ *\n+ * This program is free software: you can redistribute it and/or modify\n+ * it under the terms of the GNU Affero General Public License as\n+ * published by the Free Software Foundation, either version 3 of the\n+ * License, or (at your option) any later version.\n+ *\n+ * An additional term exception under section 7 of the GNU Affero\n+ * General Public License, version 3, is available at\n+ * http://developer.catrobat.org/license_additional_term\n+ *\n+ * This program is distributed in the hope that it will be useful,\n+ * but WITHOUT ANY WARRANTY; without even the implied warranty of\n+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n+ * GNU Affero General Public License for more details.\n+ *\n+ * You should have received a copy of the GNU Affero General Public License\n+ * along with this program.  If not, see <http://www.gnu.org/licenses/>.\n+ */\n+package org.catrobat.catroid.content.bricks;\n+\n+import android.content.Context;\n+import android.content.res.ColorStateList;\n+import android.graphics.drawable.Drawable;\n+import android.view.View;\n+import android.widget.AdapterView;\n+import android.widget.AdapterView.OnItemSelectedListener;\n+import android.widget.ArrayAdapter;\n+import android.widget.BaseAdapter;\n+import android.widget.CompoundButton;\n+import android.widget.CompoundButton.OnCheckedChangeListener;\n+import android.widget.Spinner;\n+import android.widget.TextView;\n+\n+import com.badlogic.gdx.scenes.scene2d.actions.SequenceAction;\n+\n+import org.catrobat.catroid.R;\n+import org.catrobat.catroid.common.BrickValues;\n+import org.catrobat.catroid.content.Sprite;\n+import org.catrobat.catroid.content.actions.ExtendedActions;\n+import org.catrobat.catroid.formulaeditor.Formula;\n+import org.catrobat.catroid.formulaeditor.FormulaElement;\n+import org.catrobat.catroid.ui.fragment.ColorSeekbar;\n+import org.catrobat.catroid.ui.fragment.FormulaEditorFragment;\n+\n+import java.util.List;\n+\n+public class PhiroRGBLightBrick extends FormulaBrick {\n+\tprivate static final long serialVersionUID = 1L;\n+\n+\tprivate transient View prototypeView;\n+\tprivate transient AdapterView<?> adapterView;\n+\n+\tpublic static enum Eye {\n+\t\tLeft, Right, Both","path":"catroid/src/org/catrobat/catroid/content/bricks/PhiroRGBLightBrick.java","position":58,"original_position":58,"commit_id":"b34c593dc5f2ab6a787bc6fdbd93a13d4a91e2e5","original_commit_id":"b34c593dc5f2ab6a787bc6fdbd93a13d4a91e2e5","user":{"login":"aried3r","id":1301152,"avatar_url":"https://avatars.githubusercontent.com/u/1301152?v=3","gravatar_id":"","url":"https://api.github.com/users/aried3r","html_url":"https://github.com/aried3r","followers_url":"https://api.github.com/users/aried3r/followers","following_url":"https://api.github.com/users/aried3r/following{/other_user}","gists_url":"https://api.github.com/users/aried3r/gists{/gist_id}","starred_url":"https://api.github.com/users/aried3r/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aried3r/subscriptions","organizations_url":"https://api.github.com/users/aried3r/orgs","repos_url":"https://api.github.com/users/aried3r/repos","events_url":"https://api.github.com/users/aried3r/events{/privacy}","received_events_url":"https://api.github.com/users/aried3r/received_events","type":"User","site_admin":false},"body":"I think we CAPITALIZE enums.","created_at":"2015-06-07T11:58:11Z","updated_at":"2015-06-07T11:58:11Z","html_url":"https://github.com/Catrobat/Catroid/pull/1266#discussion_r31876262","pull_request_url":"https://api.github.com/repos/Catrobat/Catroid/pulls/1266","_links":{"self":{"href":"https://api.github.com/repos/Catrobat/Catroid/pulls/comments/31876262"},"html":{"href":"https://github.com/Catrobat/Catroid/pull/1266#discussion_r31876262"},"pull_request":{"href":"https://api.github.com/repos/Catrobat/Catroid/pulls/1266"}}},"pull_request":{"url":"https://api.github.com/repos/Catrobat/Catroid/pulls/1266","id":36772729,"html_url":"https://github.com/Catrobat/Catroid/pull/1266","diff_url":"https://github.com/Catrobat/Catroid/pull/1266.diff","patch_url":"https://github.com/Catrobat/Catroid/pull/1266.patch","issue_url":"https://api.github.com/repos/Catrobat/Catroid/issues/1266","number":1266,"state":"open","locked":false,"title":"Feature/phiro","user":{"login":"AdrianSch","id":5868333,"avatar_url":"https://avatars.githubusercontent.com/u/5868333?v=3","gravatar_id":"","url":"https://api.github.com/users/AdrianSch","html_url":"https://github.com/AdrianSch","followers_url":"https://api.github.com/users/AdrianSch/followers","following_url":"https://api.github.com/users/AdrianSch/following{/other_user}","gists_url":"https://api.github.com/users/AdrianSch/gists{/gist_id}","starred_url":"https://api.github.com/users/AdrianSch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AdrianSch/subscriptions","organizations_url":"https://api.github.com/users/AdrianSch/orgs","repos_url":"https://api.github.com/users/AdrianSch/repos","events_url":"https://api.github.com/users/AdrianSch/events{/privacy}","received_events_url":"https://api.github.com/users/AdrianSch/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-06-02T20:52:08Z","updated_at":"2015-06-07T11:58:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3bf3d56124612eb45912c3fe32e5e051ed12e8c1","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Catrobat/Catroid/pulls/1266/commits","review_comments_url":"https://api.github.com/repos/Catrobat/Catroid/pulls/1266/comments","review_comment_url":"https://api.github.com/repos/Catrobat/Catroid/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Catrobat/Catroid/issues/1266/comments","statuses_url":"https://api.github.com/repos/Catrobat/Catroid/statuses/b34c593dc5f2ab6a787bc6fdbd93a13d4a91e2e5","head":{"label":"Catrobat:feature/phiro","ref":"feature/phiro","sha":"b34c593dc5f2ab6a787bc6fdbd93a13d4a91e2e5","user":{"login":"Catrobat","id":1747223,"avatar_url":"https://avatars.githubusercontent.com/u/1747223?v=3","gravatar_id":"","url":"https://api.github.com/users/Catrobat","html_url":"https://github.com/Catrobat","followers_url":"https://api.github.com/users/Catrobat/followers","following_url":"https://api.github.com/users/Catrobat/following{/other_user}","gists_url":"https://api.github.com/users/Catrobat/gists{/gist_id}","starred_url":"https://api.github.com/users/Catrobat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Catrobat/subscriptions","organizations_url":"https://api.github.com/users/Catrobat/orgs","repos_url":"https://api.github.com/users/Catrobat/repos","events_url":"https://api.github.com/users/Catrobat/events{/privacy}","received_events_url":"https://api.github.com/users/Catrobat/received_events","type":"Organization","site_admin":false},"repo":{"id":4475999,"name":"Catroid","full_name":"Catrobat/Catroid","owner":{"login":"Catrobat","id":1747223,"avatar_url":"https://avatars.githubusercontent.com/u/1747223?v=3","gravatar_id":"","url":"https://api.github.com/users/Catrobat","html_url":"https://github.com/Catrobat","followers_url":"https://api.github.com/users/Catrobat/followers","following_url":"https://api.github.com/users/Catrobat/following{/other_user}","gists_url":"https://api.github.com/users/Catrobat/gists{/gist_id}","starred_url":"https://api.github.com/users/Catrobat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Catrobat/subscriptions","organizations_url":"https://api.github.com/users/Catrobat/orgs","repos_url":"https://api.github.com/users/Catrobat/repos","events_url":"https://api.github.com/users/Catrobat/events{/privacy}","received_events_url":"https://api.github.com/users/Catrobat/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Catrobat/Catroid","description":"Writing programs on an Android device without prior knowledge.","fork":false,"url":"https://api.github.com/repos/Catrobat/Catroid","forks_url":"https://api.github.com/repos/Catrobat/Catroid/forks","keys_url":"https://api.github.com/repos/Catrobat/Catroid/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Catrobat/Catroid/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Catrobat/Catroid/teams","hooks_url":"https://api.github.com/repos/Catrobat/Catroid/hooks","issue_events_url":"https://api.github.com/repos/Catrobat/Catroid/issues/events{/number}","events_url":"https://api.github.com/repos/Catrobat/Catroid/events","assignees_url":"https://api.github.com/repos/Catrobat/Catroid/assignees{/user}","branches_url":"https://api.github.com/repos/Catrobat/Catroid/branches{/branch}","tags_url":"https://api.github.com/repos/Catrobat/Catroid/tags","blobs_url":"https://api.github.com/repos/Catrobat/Catroid/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Catrobat/Catroid/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Catrobat/Catroid/git/refs{/sha}","trees_url":"https://api.github.com/repos/Catrobat/Catroid/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Catrobat/Catroid/statuses/{sha}","languages_url":"https://api.github.com/repos/Catrobat/Catroid/languages","stargazers_url":"https://api.github.com/repos/Catrobat/Catroid/stargazers","contributors_url":"https://api.github.com/repos/Catrobat/Catroid/contributors","subscribers_url":"https://api.github.com/repos/Catrobat/Catroid/subscribers","subscription_url":"https://api.github.com/repos/Catrobat/Catroid/subscription","commits_url":"https://api.github.com/repos/Catrobat/Catroid/commits{/sha}","git_commits_url":"https://api.github.com/repos/Catrobat/Catroid/git/commits{/sha}","comments_url":"https://api.github.com/repos/Catrobat/Catroid/comments{/number}","issue_comment_url":"https://api.github.com/repos/Catrobat/Catroid/issues/comments{/number}","contents_url":"https://api.github.com/repos/Catrobat/Catroid/contents/{+path}","compare_url":"https://api.github.com/repos/Catrobat/Catroid/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Catrobat/Catroid/merges","archive_url":"https://api.github.com/repos/Catrobat/Catroid/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Catrobat/Catroid/downloads","issues_url":"https://api.github.com/repos/Catrobat/Catroid/issues{/number}","pulls_url":"https://api.github.com/repos/Catrobat/Catroid/pulls{/number}","milestones_url":"https://api.github.com/repos/Catrobat/Catroid/milestones{/number}","notifications_url":"https://api.github.com/repos/Catrobat/Catroid/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Catrobat/Catroid/labels{/name}","releases_url":"https://api.github.com/repos/Catrobat/Catroid/releases{/id}","created_at":"2012-05-29T00:18:04Z","updated_at":"2015-05-22T19:20:28Z","pushed_at":"2015-06-05T19:38:35Z","git_url":"git://github.com/Catrobat/Catroid.git","ssh_url":"git@github.com:Catrobat/Catroid.git","clone_url":"https://github.com/Catrobat/Catroid.git","svn_url":"https://github.com/Catrobat/Catroid","homepage":"www.pocketcode.org","size":219013,"stargazers_count":104,"watchers_count":104,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":105,"mirror_url":null,"open_issues_count":127,"forks":105,"open_issues":127,"watchers":104,"default_branch":"develop"}},"base":{"label":"Catrobat:develop","ref":"develop","sha":"28a5c4a8233c40c01259196137348f551347effa","user":{"login":"Catrobat","id":1747223,"avatar_url":"https://avatars.githubusercontent.com/u/1747223?v=3","gravatar_id":"","url":"https://api.github.com/users/Catrobat","html_url":"https://github.com/Catrobat","followers_url":"https://api.github.com/users/Catrobat/followers","following_url":"https://api.github.com/users/Catrobat/following{/other_user}","gists_url":"https://api.github.com/users/Catrobat/gists{/gist_id}","starred_url":"https://api.github.com/users/Catrobat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Catrobat/subscriptions","organizations_url":"https://api.github.com/users/Catrobat/orgs","repos_url":"https://api.github.com/users/Catrobat/repos","events_url":"https://api.github.com/users/Catrobat/events{/privacy}","received_events_url":"https://api.github.com/users/Catrobat/received_events","type":"Organization","site_admin":false},"repo":{"id":4475999,"name":"Catroid","full_name":"Catrobat/Catroid","owner":{"login":"Catrobat","id":1747223,"avatar_url":"https://avatars.githubusercontent.com/u/1747223?v=3","gravatar_id":"","url":"https://api.github.com/users/Catrobat","html_url":"https://github.com/Catrobat","followers_url":"https://api.github.com/users/Catrobat/followers","following_url":"https://api.github.com/users/Catrobat/following{/other_user}","gists_url":"https://api.github.com/users/Catrobat/gists{/gist_id}","starred_url":"https://api.github.com/users/Catrobat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Catrobat/subscriptions","organizations_url":"https://api.github.com/users/Catrobat/orgs","repos_url":"https://api.github.com/users/Catrobat/repos","events_url":"https://api.github.com/users/Catrobat/events{/privacy}","received_events_url":"https://api.github.com/users/Catrobat/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Catrobat/Catroid","description":"Writing programs on an Android device without prior knowledge.","fork":false,"url":"https://api.github.com/repos/Catrobat/Catroid","forks_url":"https://api.github.com/repos/Catrobat/Catroid/forks","keys_url":"https://api.github.com/repos/Catrobat/Catroid/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Catrobat/Catroid/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Catrobat/Catroid/teams","hooks_url":"https://api.github.com/repos/Catrobat/Catroid/hooks","issue_events_url":"https://api.github.com/repos/Catrobat/Catroid/issues/events{/number}","events_url":"https://api.github.com/repos/Catrobat/Catroid/events","assignees_url":"https://api.github.com/repos/Catrobat/Catroid/assignees{/user}","branches_url":"https://api.github.com/repos/Catrobat/Catroid/branches{/branch}","tags_url":"https://api.github.com/repos/Catrobat/Catroid/tags","blobs_url":"https://api.github.com/repos/Catrobat/Catroid/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Catrobat/Catroid/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Catrobat/Catroid/git/refs{/sha}","trees_url":"https://api.github.com/repos/Catrobat/Catroid/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Catrobat/Catroid/statuses/{sha}","languages_url":"https://api.github.com/repos/Catrobat/Catroid/languages","stargazers_url":"https://api.github.com/repos/Catrobat/Catroid/stargazers","contributors_url":"https://api.github.com/repos/Catrobat/Catroid/contributors","subscribers_url":"https://api.github.com/repos/Catrobat/Catroid/subscribers","subscription_url":"https://api.github.com/repos/Catrobat/Catroid/subscription","commits_url":"https://api.github.com/repos/Catrobat/Catroid/commits{/sha}","git_commits_url":"https://api.github.com/repos/Catrobat/Catroid/git/commits{/sha}","comments_url":"https://api.github.com/repos/Catrobat/Catroid/comments{/number}","issue_comment_url":"https://api.github.com/repos/Catrobat/Catroid/issues/comments{/number}","contents_url":"https://api.github.com/repos/Catrobat/Catroid/contents/{+path}","compare_url":"https://api.github.com/repos/Catrobat/Catroid/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Catrobat/Catroid/merges","archive_url":"https://api.github.com/repos/Catrobat/Catroid/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Catrobat/Catroid/downloads","issues_url":"https://api.github.com/repos/Catrobat/Catroid/issues{/number}","pulls_url":"https://api.github.com/repos/Catrobat/Catroid/pulls{/number}","milestones_url":"https://api.github.com/repos/Catrobat/Catroid/milestones{/number}","notifications_url":"https://api.github.com/repos/Catrobat/Catroid/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Catrobat/Catroid/labels{/name}","releases_url":"https://api.github.com/repos/Catrobat/Catroid/releases{/id}","created_at":"2012-05-29T00:18:04Z","updated_at":"2015-05-22T19:20:28Z","pushed_at":"2015-06-05T19:38:35Z","git_url":"git://github.com/Catrobat/Catroid.git","ssh_url":"git@github.com:Catrobat/Catroid.git","clone_url":"https://github.com/Catrobat/Catroid.git","svn_url":"https://github.com/Catrobat/Catroid","homepage":"www.pocketcode.org","size":219013,"stargazers_count":104,"watchers_count":104,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":105,"mirror_url":null,"open_issues_count":127,"forks":105,"open_issues":127,"watchers":104,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/Catrobat/Catroid/pulls/1266"},"html":{"href":"https://github.com/Catrobat/Catroid/pull/1266"},"issue":{"href":"https://api.github.com/repos/Catrobat/Catroid/issues/1266"},"comments":{"href":"https://api.github.com/repos/Catrobat/Catroid/issues/1266/comments"},"review_comments":{"href":"https://api.github.com/repos/Catrobat/Catroid/pulls/1266/comments"},"review_comment":{"href":"https://api.github.com/repos/Catrobat/Catroid/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Catrobat/Catroid/pulls/1266/commits"},"statuses":{"href":"https://api.github.com/repos/Catrobat/Catroid/statuses/b34c593dc5f2ab6a787bc6fdbd93a13d4a91e2e5"}}}}