{"action":"created","comment":{"url":"https://api.github.com/repos/fossasia/open-event-android/pulls/comments/84585289","pull_request_review_id":5356381,"id":84585289,"diff_hunk":"@@ -49,53 +63,54 @@ protected void publishResults(CharSequence constraint, FilterResults results) {\n             animateTo((List<Microlocation>) results.values);\n         }\n     };\n-    private ViewHolder.SetOnClickListener listener;\n-\n-    public LocationsListAdapter(List<Microlocation> microlocations) {\n-        super(microlocations);\n-    }\n \n     @Override\n     public Filter getFilter() {\n         return filter;\n     }\n \n-    public void setOnClickListener(ViewHolder.SetOnClickListener clickListener) {\n-        this.listener = clickListener;\n-    }\n-\n     @Override\n-    public ViewHolder.Viewholder onCreateViewHolder(ViewGroup parent, int viewType) {\n+    public LocationViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {\n         LayoutInflater layoutInflater = LayoutInflater.from(parent.getContext());\n         View view = layoutInflater.inflate(R.layout.item_location, parent, false);\n-        ViewHolder.Viewholder viewholder = new ViewHolder.Viewholder(view);\n-\n-        viewholder.setTxtView1((TextView) view.findViewById(R.id.location_name));\n-        viewholder.setTxtView2((TextView) view.findViewById(R.id.location_floor));\n-\n-        return viewholder;\n+        return new LocationViewHolder(view);\n     }\n \n     @Override\n-    public void onBindViewHolder(ViewHolder.Viewholder holder, int position) {\n-        Microlocation current = getItem(position);\n-        holder.getTxtView1().setText(current.getName());\n-        holder.getTxtView2().setText(MessageFormat.format(\"{0}{1}\",\n+    public void onBindViewHolder(LocationViewHolder holder, int position) {\n+        final Microlocation location = getItem(position);\n+        holder.locationName.setText(location.getName());\n+        holder.locationFloor.setText(MessageFormat.format(\"{0}{1}\",\n                 holder.itemView.getResources().getString(R.string.fmt_floor),\n-                current.getFloor()));\n-        holder.setItemClickListener(listener);\n+                location.getFloor()));\n+\n+        holder.itemView.setOnClickListener(new View.OnClickListener() {\n+            @Override\n+            public void onClick(View v) {\n+                Intent intent = new Intent(context, LocationActivity.class);\n+                intent.putExtra(ConstantStrings.MICROLOCATIONS, location.getName());\n+                context.startActivity(intent);\n+            }\n+        });\n     }\n \n     public void refresh() {\n-        DbSingleton dbSingleton = DbSingleton.getInstance();\n         clear();\n-        animateTo(dbSingleton.getMicrolocationsList());\n+        animateTo(DbSingleton.getInstance().getMicrolocationsList());\n     }\n \n-    /**\n-     * to handle click listener\n-     */\n-    public interface SetOnClickListener extends ViewHolder.SetOnClickListener {\n-        void onItemClick(int position, View itemView);\n+    protected class LocationViewHolder extends RecyclerView.ViewHolder {\n+\n+        @BindView(R.id.location_name)\n+        TextView locationName;\n+\n+        @BindView(R.id.location_floor)","path":"android/app/src/main/java/org/fossasia/openevent/adapters/LocationsListAdapter.java","position":119,"original_position":119,"commit_id":"f6dd87796f4f76b43a57f820cdbe832af904f760","original_commit_id":"f6dd87796f4f76b43a57f820cdbe832af904f760","user":{"login":"codacy-bot","id":19940114,"avatar_url":"https://avatars.githubusercontent.com/u/19940114?v=3","gravatar_id":"","url":"https://api.github.com/users/codacy-bot","html_url":"https://github.com/codacy-bot","followers_url":"https://api.github.com/users/codacy-bot/followers","following_url":"https://api.github.com/users/codacy-bot/following{/other_user}","gists_url":"https://api.github.com/users/codacy-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/codacy-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codacy-bot/subscriptions","organizations_url":"https://api.github.com/users/codacy-bot/orgs","repos_url":"https://api.github.com/users/codacy-bot/repos","events_url":"https://api.github.com/users/codacy-bot/events{/privacy}","received_events_url":"https://api.github.com/users/codacy-bot/received_events","type":"User","site_admin":false},"body":"![Codacy](https://www.codacy.com/assets/images/favicon.png) Issue found: [Use explicit scoping instead of the default package private level](https://www.codacy.com/app/dev_19/open-event-android/file/4254366662/issues/source?bid=3438485&fileBranchId=3830743#l107)","created_at":"2016-10-22T20:57:55Z","updated_at":"2016-10-22T20:57:55Z","html_url":"https://github.com/fossasia/open-event-android/pull/758#discussion_r84585289","pull_request_url":"https://api.github.com/repos/fossasia/open-event-android/pulls/758","_links":{"self":{"href":"https://api.github.com/repos/fossasia/open-event-android/pulls/comments/84585289"},"html":{"href":"https://github.com/fossasia/open-event-android/pull/758#discussion_r84585289"},"pull_request":{"href":"https://api.github.com/repos/fossasia/open-event-android/pulls/758"}}},"pull_request":{"url":"https://api.github.com/repos/fossasia/open-event-android/pulls/758","id":90492943,"html_url":"https://github.com/fossasia/open-event-android/pull/758","diff_url":"https://github.com/fossasia/open-event-android/pull/758.diff","patch_url":"https://github.com/fossasia/open-event-android/pull/758.patch","issue_url":"https://api.github.com/repos/fossasia/open-event-android/issues/758","number":758,"state":"open","locked":false,"title":"Adapter butterknife binding clicklistener","user":{"login":"PareshMayani","id":888080,"avatar_url":"https://avatars.githubusercontent.com/u/888080?v=3","gravatar_id":"","url":"https://api.github.com/users/PareshMayani","html_url":"https://github.com/PareshMayani","followers_url":"https://api.github.com/users/PareshMayani/followers","following_url":"https://api.github.com/users/PareshMayani/following{/other_user}","gists_url":"https://api.github.com/users/PareshMayani/gists{/gist_id}","starred_url":"https://api.github.com/users/PareshMayani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PareshMayani/subscriptions","organizations_url":"https://api.github.com/users/PareshMayani/orgs","repos_url":"https://api.github.com/users/PareshMayani/repos","events_url":"https://api.github.com/users/PareshMayani/events{/privacy}","received_events_url":"https://api.github.com/users/PareshMayani/received_events","type":"User","site_admin":false},"body":"Solution for #754 ","created_at":"2016-10-22T19:37:03Z","updated_at":"2016-10-22T20:57:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"aa43504a10fcaf2459dda50ac9e1414de69f3ead","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/fossasia/open-event-android/pulls/758/commits","review_comments_url":"https://api.github.com/repos/fossasia/open-event-android/pulls/758/comments","review_comment_url":"https://api.github.com/repos/fossasia/open-event-android/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fossasia/open-event-android/issues/758/comments","statuses_url":"https://api.github.com/repos/fossasia/open-event-android/statuses/f6dd87796f4f76b43a57f820cdbe832af904f760","head":{"label":"PareshMayani:adapter-butterknife-binding-clicklistener","ref":"adapter-butterknife-binding-clicklistener","sha":"f6dd87796f4f76b43a57f820cdbe832af904f760","user":{"login":"PareshMayani","id":888080,"avatar_url":"https://avatars.githubusercontent.com/u/888080?v=3","gravatar_id":"","url":"https://api.github.com/users/PareshMayani","html_url":"https://github.com/PareshMayani","followers_url":"https://api.github.com/users/PareshMayani/followers","following_url":"https://api.github.com/users/PareshMayani/following{/other_user}","gists_url":"https://api.github.com/users/PareshMayani/gists{/gist_id}","starred_url":"https://api.github.com/users/PareshMayani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PareshMayani/subscriptions","organizations_url":"https://api.github.com/users/PareshMayani/orgs","repos_url":"https://api.github.com/users/PareshMayani/repos","events_url":"https://api.github.com/users/PareshMayani/events{/privacy}","received_events_url":"https://api.github.com/users/PareshMayani/received_events","type":"User","site_admin":false},"repo":{"id":71067018,"name":"open-event-android","full_name":"PareshMayani/open-event-android","owner":{"login":"PareshMayani","id":888080,"avatar_url":"https://avatars.githubusercontent.com/u/888080?v=3","gravatar_id":"","url":"https://api.github.com/users/PareshMayani","html_url":"https://github.com/PareshMayani","followers_url":"https://api.github.com/users/PareshMayani/followers","following_url":"https://api.github.com/users/PareshMayani/following{/other_user}","gists_url":"https://api.github.com/users/PareshMayani/gists{/gist_id}","starred_url":"https://api.github.com/users/PareshMayani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PareshMayani/subscriptions","organizations_url":"https://api.github.com/users/PareshMayani/orgs","repos_url":"https://api.github.com/users/PareshMayani/repos","events_url":"https://api.github.com/users/PareshMayani/events{/privacy}","received_events_url":"https://api.github.com/users/PareshMayani/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/PareshMayani/open-event-android","description":"Open Event Android App Generator","fork":true,"url":"https://api.github.com/repos/PareshMayani/open-event-android","forks_url":"https://api.github.com/repos/PareshMayani/open-event-android/forks","keys_url":"https://api.github.com/repos/PareshMayani/open-event-android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PareshMayani/open-event-android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PareshMayani/open-event-android/teams","hooks_url":"https://api.github.com/repos/PareshMayani/open-event-android/hooks","issue_events_url":"https://api.github.com/repos/PareshMayani/open-event-android/issues/events{/number}","events_url":"https://api.github.com/repos/PareshMayani/open-event-android/events","assignees_url":"https://api.github.com/repos/PareshMayani/open-event-android/assignees{/user}","branches_url":"https://api.github.com/repos/PareshMayani/open-event-android/branches{/branch}","tags_url":"https://api.github.com/repos/PareshMayani/open-event-android/tags","blobs_url":"https://api.github.com/repos/PareshMayani/open-event-android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PareshMayani/open-event-android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PareshMayani/open-event-android/git/refs{/sha}","trees_url":"https://api.github.com/repos/PareshMayani/open-event-android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PareshMayani/open-event-android/statuses/{sha}","languages_url":"https://api.github.com/repos/PareshMayani/open-event-android/languages","stargazers_url":"https://api.github.com/repos/PareshMayani/open-event-android/stargazers","contributors_url":"https://api.github.com/repos/PareshMayani/open-event-android/contributors","subscribers_url":"https://api.github.com/repos/PareshMayani/open-event-android/subscribers","subscription_url":"https://api.github.com/repos/PareshMayani/open-event-android/subscription","commits_url":"https://api.github.com/repos/PareshMayani/open-event-android/commits{/sha}","git_commits_url":"https://api.github.com/repos/PareshMayani/open-event-android/git/commits{/sha}","comments_url":"https://api.github.com/repos/PareshMayani/open-event-android/comments{/number}","issue_comment_url":"https://api.github.com/repos/PareshMayani/open-event-android/issues/comments{/number}","contents_url":"https://api.github.com/repos/PareshMayani/open-event-android/contents/{+path}","compare_url":"https://api.github.com/repos/PareshMayani/open-event-android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PareshMayani/open-event-android/merges","archive_url":"https://api.github.com/repos/PareshMayani/open-event-android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PareshMayani/open-event-android/downloads","issues_url":"https://api.github.com/repos/PareshMayani/open-event-android/issues{/number}","pulls_url":"https://api.github.com/repos/PareshMayani/open-event-android/pulls{/number}","milestones_url":"https://api.github.com/repos/PareshMayani/open-event-android/milestones{/number}","notifications_url":"https://api.github.com/repos/PareshMayani/open-event-android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PareshMayani/open-event-android/labels{/name}","releases_url":"https://api.github.com/repos/PareshMayani/open-event-android/releases{/id}","deployments_url":"https://api.github.com/repos/PareshMayani/open-event-android/deployments","created_at":"2016-10-16T17:50:21Z","updated_at":"2016-10-16T17:50:23Z","pushed_at":"2016-10-22T19:34:13Z","git_url":"git://github.com/PareshMayani/open-event-android.git","ssh_url":"git@github.com:PareshMayani/open-event-android.git","clone_url":"https://github.com/PareshMayani/open-event-android.git","svn_url":"https://github.com/PareshMayani/open-event-android","homepage":"http://45.55.58.149","size":276561,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"development"}},"base":{"label":"fossasia:development","ref":"development","sha":"61e952b016e14b1ef8f5492da1826e97fbf4945f","user":{"login":"fossasia","id":6295529,"avatar_url":"https://avatars.githubusercontent.com/u/6295529?v=3","gravatar_id":"","url":"https://api.github.com/users/fossasia","html_url":"https://github.com/fossasia","followers_url":"https://api.github.com/users/fossasia/followers","following_url":"https://api.github.com/users/fossasia/following{/other_user}","gists_url":"https://api.github.com/users/fossasia/gists{/gist_id}","starred_url":"https://api.github.com/users/fossasia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fossasia/subscriptions","organizations_url":"https://api.github.com/users/fossasia/orgs","repos_url":"https://api.github.com/users/fossasia/repos","events_url":"https://api.github.com/users/fossasia/events{/privacy}","received_events_url":"https://api.github.com/users/fossasia/received_events","type":"Organization","site_admin":false},"repo":{"id":35269607,"name":"open-event-android","full_name":"fossasia/open-event-android","owner":{"login":"fossasia","id":6295529,"avatar_url":"https://avatars.githubusercontent.com/u/6295529?v=3","gravatar_id":"","url":"https://api.github.com/users/fossasia","html_url":"https://github.com/fossasia","followers_url":"https://api.github.com/users/fossasia/followers","following_url":"https://api.github.com/users/fossasia/following{/other_user}","gists_url":"https://api.github.com/users/fossasia/gists{/gist_id}","starred_url":"https://api.github.com/users/fossasia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fossasia/subscriptions","organizations_url":"https://api.github.com/users/fossasia/orgs","repos_url":"https://api.github.com/users/fossasia/repos","events_url":"https://api.github.com/users/fossasia/events{/privacy}","received_events_url":"https://api.github.com/users/fossasia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fossasia/open-event-android","description":"Open Event Android App Generator","fork":false,"url":"https://api.github.com/repos/fossasia/open-event-android","forks_url":"https://api.github.com/repos/fossasia/open-event-android/forks","keys_url":"https://api.github.com/repos/fossasia/open-event-android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fossasia/open-event-android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fossasia/open-event-android/teams","hooks_url":"https://api.github.com/repos/fossasia/open-event-android/hooks","issue_events_url":"https://api.github.com/repos/fossasia/open-event-android/issues/events{/number}","events_url":"https://api.github.com/repos/fossasia/open-event-android/events","assignees_url":"https://api.github.com/repos/fossasia/open-event-android/assignees{/user}","branches_url":"https://api.github.com/repos/fossasia/open-event-android/branches{/branch}","tags_url":"https://api.github.com/repos/fossasia/open-event-android/tags","blobs_url":"https://api.github.com/repos/fossasia/open-event-android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fossasia/open-event-android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fossasia/open-event-android/git/refs{/sha}","trees_url":"https://api.github.com/repos/fossasia/open-event-android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fossasia/open-event-android/statuses/{sha}","languages_url":"https://api.github.com/repos/fossasia/open-event-android/languages","stargazers_url":"https://api.github.com/repos/fossasia/open-event-android/stargazers","contributors_url":"https://api.github.com/repos/fossasia/open-event-android/contributors","subscribers_url":"https://api.github.com/repos/fossasia/open-event-android/subscribers","subscription_url":"https://api.github.com/repos/fossasia/open-event-android/subscription","commits_url":"https://api.github.com/repos/fossasia/open-event-android/commits{/sha}","git_commits_url":"https://api.github.com/repos/fossasia/open-event-android/git/commits{/sha}","comments_url":"https://api.github.com/repos/fossasia/open-event-android/comments{/number}","issue_comment_url":"https://api.github.com/repos/fossasia/open-event-android/issues/comments{/number}","contents_url":"https://api.github.com/repos/fossasia/open-event-android/contents/{+path}","compare_url":"https://api.github.com/repos/fossasia/open-event-android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fossasia/open-event-android/merges","archive_url":"https://api.github.com/repos/fossasia/open-event-android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fossasia/open-event-android/downloads","issues_url":"https://api.github.com/repos/fossasia/open-event-android/issues{/number}","pulls_url":"https://api.github.com/repos/fossasia/open-event-android/pulls{/number}","milestones_url":"https://api.github.com/repos/fossasia/open-event-android/milestones{/number}","notifications_url":"https://api.github.com/repos/fossasia/open-event-android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fossasia/open-event-android/labels{/name}","releases_url":"https://api.github.com/repos/fossasia/open-event-android/releases{/id}","deployments_url":"https://api.github.com/repos/fossasia/open-event-android/deployments","created_at":"2015-05-08T09:04:11Z","updated_at":"2016-10-21T17:47:48Z","pushed_at":"2016-10-22T19:37:03Z","git_url":"git://github.com/fossasia/open-event-android.git","ssh_url":"git@github.com:fossasia/open-event-android.git","clone_url":"https://github.com/fossasia/open-event-android.git","svn_url":"https://github.com/fossasia/open-event-android","homepage":"http://45.55.58.149","size":331111,"stargazers_count":99,"watchers_count":99,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":140,"mirror_url":null,"open_issues_count":20,"forks":140,"open_issues":20,"watchers":99,"default_branch":"development"}},"_links":{"self":{"href":"https://api.github.com/repos/fossasia/open-event-android/pulls/758"},"html":{"href":"https://github.com/fossasia/open-event-android/pull/758"},"issue":{"href":"https://api.github.com/repos/fossasia/open-event-android/issues/758"},"comments":{"href":"https://api.github.com/repos/fossasia/open-event-android/issues/758/comments"},"review_comments":{"href":"https://api.github.com/repos/fossasia/open-event-android/pulls/758/comments"},"review_comment":{"href":"https://api.github.com/repos/fossasia/open-event-android/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fossasia/open-event-android/pulls/758/commits"},"statuses":{"href":"https://api.github.com/repos/fossasia/open-event-android/statuses/f6dd87796f4f76b43a57f820cdbe832af904f760"}}}}
{"actor":{"display_login":"codacy-bot"}}