{"action":"created","comment":{"url":"https://api.github.com/repos/CuriousSugam/ActivityLogger/pulls/comments/72378345","id":72378345,"diff_hunk":"@@ -0,0 +1,91 @@\n+package com.lftechnology.activitylogger.Adapter;\r\n+\r\n+import android.content.Context;\r\n+import android.graphics.Bitmap;\r\n+import android.support.v7.widget.RecyclerView;\r\n+import android.view.LayoutInflater;\r\n+import android.view.View;\r\n+import android.view.ViewGroup;\r\n+import android.widget.ImageView;\r\n+import android.widget.TextView;\r\n+\r\n+import com.lftechnology.activitylogger.AsynkTasks.BitmapWorkerTask;\r\n+import com.lftechnology.activitylogger.R;\r\n+import com.lftechnology.activitylogger.model.AppDetails;\r\n+\r\n+import java.util.List;\r\n+\r\n+/**\r\n+ * It is an adapter class that binds the data of the installed apps to the recycler view\r\n+ *\r\n+ * Created by Sugam on 7/15/2016.\r\n+ */\r\n+public class AllInstalledAppsAdapter extends RecyclerView.Adapter<AllInstalledAppsAdapter.AllAppsViewholder> {\r\n+\r\n+    private Context context;\r\n+    private  List<AppDetails> appDetailsList;\r\n+\r\n+    /**\r\n+     *\r\n+     * @param context context of the calling\r\n+     * @param appDetailsList List of AppDetails object\r\n+     */\r\n+    public AllInstalledAppsAdapter(Context context, List<AppDetails> appDetailsList){\r\n+        this.context = context;\r\n+        this.appDetailsList = appDetailsList;\r\n+    }\r\n+\r\n+    @Override\r\n+    public AllAppsViewholder onCreateViewHolder(ViewGroup parent, int viewType) {\r\n+        View view = LayoutInflater.from(context).inflate(R.layout.layout_all_applications_grid, parent, false);\r\n+        return new AllAppsViewholder(view);\r\n+    }\r\n+\r\n+\r\n+    @Override\r\n+    public void onBindViewHolder(AllAppsViewholder holder, int position) {\r\n+        String applicationName =appDetailsList.get(position).getApplicationName();\r\n+        String packageName = appDetailsList.get(position).getPackageName();\r\n+        if(applicationName.length() > 9){\r","path":"app/src/main/java/com/lftechnology/activitylogger/Adapter/AllInstalledAppsAdapter.java","position":49,"original_position":49,"commit_id":"1ad479d4c2891f550ca4eec69ad95e84b59aedd1","original_commit_id":"1ad479d4c2891f550ca4eec69ad95e84b59aedd1","user":{"login":"manas-raj-shrestha","id":11496664,"avatar_url":"https://avatars.githubusercontent.com/u/11496664?v=3","gravatar_id":"","url":"https://api.github.com/users/manas-raj-shrestha","html_url":"https://github.com/manas-raj-shrestha","followers_url":"https://api.github.com/users/manas-raj-shrestha/followers","following_url":"https://api.github.com/users/manas-raj-shrestha/following{/other_user}","gists_url":"https://api.github.com/users/manas-raj-shrestha/gists{/gist_id}","starred_url":"https://api.github.com/users/manas-raj-shrestha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manas-raj-shrestha/subscriptions","organizations_url":"https://api.github.com/users/manas-raj-shrestha/orgs","repos_url":"https://api.github.com/users/manas-raj-shrestha/repos","events_url":"https://api.github.com/users/manas-raj-shrestha/events{/privacy}","received_events_url":"https://api.github.com/users/manas-raj-shrestha/received_events","type":"User","site_admin":false},"body":"@CuriousSugam are u trying to achieve ellipsize? have a look at ellipsize.","created_at":"2016-07-27T04:06:22Z","updated_at":"2016-07-27T04:06:22Z","html_url":"https://github.com/CuriousSugam/ActivityLogger/pull/11#discussion_r72378345","pull_request_url":"https://api.github.com/repos/CuriousSugam/ActivityLogger/pulls/11","_links":{"self":{"href":"https://api.github.com/repos/CuriousSugam/ActivityLogger/pulls/comments/72378345"},"html":{"href":"https://github.com/CuriousSugam/ActivityLogger/pull/11#discussion_r72378345"},"pull_request":{"href":"https://api.github.com/repos/CuriousSugam/ActivityLogger/pulls/11"}}},"pull_request":{"url":"https://api.github.com/repos/CuriousSugam/ActivityLogger/pulls/11","id":78835496,"html_url":"https://github.com/CuriousSugam/ActivityLogger/pull/11","diff_url":"https://github.com/CuriousSugam/ActivityLogger/pull/11.diff","patch_url":"https://github.com/CuriousSugam/ActivityLogger/pull/11.patch","issue_url":"https://api.github.com/repos/CuriousSugam/ActivityLogger/issues/11","number":11,"state":"open","locked":false,"title":"SS2_1","user":{"login":"CuriousSugam","id":10157383,"avatar_url":"https://avatars.githubusercontent.com/u/10157383?v=3","gravatar_id":"","url":"https://api.github.com/users/CuriousSugam","html_url":"https://github.com/CuriousSugam","followers_url":"https://api.github.com/users/CuriousSugam/followers","following_url":"https://api.github.com/users/CuriousSugam/following{/other_user}","gists_url":"https://api.github.com/users/CuriousSugam/gists{/gist_id}","starred_url":"https://api.github.com/users/CuriousSugam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CuriousSugam/subscriptions","organizations_url":"https://api.github.com/users/CuriousSugam/orgs","repos_url":"https://api.github.com/users/CuriousSugam/repos","events_url":"https://api.github.com/users/CuriousSugam/events{/privacy}","received_events_url":"https://api.github.com/users/CuriousSugam/received_events","type":"User","site_admin":false},"body":"- SplashScreen revised to fetch data from the system\r\n- created grid menu of main activity layout\r\n- created wifi, mobile and allApps activity","created_at":"2016-07-26T11:32:12Z","updated_at":"2016-07-27T04:06:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"61a26ba52130858d3aae5a9471bd4359965756ad","assignee":{"login":"manas-raj-shrestha","id":11496664,"avatar_url":"https://avatars.githubusercontent.com/u/11496664?v=3","gravatar_id":"","url":"https://api.github.com/users/manas-raj-shrestha","html_url":"https://github.com/manas-raj-shrestha","followers_url":"https://api.github.com/users/manas-raj-shrestha/followers","following_url":"https://api.github.com/users/manas-raj-shrestha/following{/other_user}","gists_url":"https://api.github.com/users/manas-raj-shrestha/gists{/gist_id}","starred_url":"https://api.github.com/users/manas-raj-shrestha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manas-raj-shrestha/subscriptions","organizations_url":"https://api.github.com/users/manas-raj-shrestha/orgs","repos_url":"https://api.github.com/users/manas-raj-shrestha/repos","events_url":"https://api.github.com/users/manas-raj-shrestha/events{/privacy}","received_events_url":"https://api.github.com/users/manas-raj-shrestha/received_events","type":"User","site_admin":false},"assignees":[{"login":"manas-raj-shrestha","id":11496664,"avatar_url":"https://avatars.githubusercontent.com/u/11496664?v=3","gravatar_id":"","url":"https://api.github.com/users/manas-raj-shrestha","html_url":"https://github.com/manas-raj-shrestha","followers_url":"https://api.github.com/users/manas-raj-shrestha/followers","following_url":"https://api.github.com/users/manas-raj-shrestha/following{/other_user}","gists_url":"https://api.github.com/users/manas-raj-shrestha/gists{/gist_id}","starred_url":"https://api.github.com/users/manas-raj-shrestha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manas-raj-shrestha/subscriptions","organizations_url":"https://api.github.com/users/manas-raj-shrestha/orgs","repos_url":"https://api.github.com/users/manas-raj-shrestha/repos","events_url":"https://api.github.com/users/manas-raj-shrestha/events{/privacy}","received_events_url":"https://api.github.com/users/manas-raj-shrestha/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/CuriousSugam/ActivityLogger/pulls/11/commits","review_comments_url":"https://api.github.com/repos/CuriousSugam/ActivityLogger/pulls/11/comments","review_comment_url":"https://api.github.com/repos/CuriousSugam/ActivityLogger/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CuriousSugam/ActivityLogger/issues/11/comments","statuses_url":"https://api.github.com/repos/CuriousSugam/ActivityLogger/statuses/1ad479d4c2891f550ca4eec69ad95e84b59aedd1","head":{"label":"CuriousSugam:SS2_1","ref":"SS2_1","sha":"1ad479d4c2891f550ca4eec69ad95e84b59aedd1","user":{"login":"CuriousSugam","id":10157383,"avatar_url":"https://avatars.githubusercontent.com/u/10157383?v=3","gravatar_id":"","url":"https://api.github.com/users/CuriousSugam","html_url":"https://github.com/CuriousSugam","followers_url":"https://api.github.com/users/CuriousSugam/followers","following_url":"https://api.github.com/users/CuriousSugam/following{/other_user}","gists_url":"https://api.github.com/users/CuriousSugam/gists{/gist_id}","starred_url":"https://api.github.com/users/CuriousSugam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CuriousSugam/subscriptions","organizations_url":"https://api.github.com/users/CuriousSugam/orgs","repos_url":"https://api.github.com/users/CuriousSugam/repos","events_url":"https://api.github.com/users/CuriousSugam/events{/privacy}","received_events_url":"https://api.github.com/users/CuriousSugam/received_events","type":"User","site_admin":false},"repo":{"id":62378442,"name":"ActivityLogger","full_name":"CuriousSugam/ActivityLogger","owner":{"login":"CuriousSugam","id":10157383,"avatar_url":"https://avatars.githubusercontent.com/u/10157383?v=3","gravatar_id":"","url":"https://api.github.com/users/CuriousSugam","html_url":"https://github.com/CuriousSugam","followers_url":"https://api.github.com/users/CuriousSugam/followers","following_url":"https://api.github.com/users/CuriousSugam/following{/other_user}","gists_url":"https://api.github.com/users/CuriousSugam/gists{/gist_id}","starred_url":"https://api.github.com/users/CuriousSugam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CuriousSugam/subscriptions","organizations_url":"https://api.github.com/users/CuriousSugam/orgs","repos_url":"https://api.github.com/users/CuriousSugam/repos","events_url":"https://api.github.com/users/CuriousSugam/events{/privacy}","received_events_url":"https://api.github.com/users/CuriousSugam/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/CuriousSugam/ActivityLogger","description":null,"fork":false,"url":"https://api.github.com/repos/CuriousSugam/ActivityLogger","forks_url":"https://api.github.com/repos/CuriousSugam/ActivityLogger/forks","keys_url":"https://api.github.com/repos/CuriousSugam/ActivityLogger/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CuriousSugam/ActivityLogger/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CuriousSugam/ActivityLogger/teams","hooks_url":"https://api.github.com/repos/CuriousSugam/ActivityLogger/hooks","issue_events_url":"https://api.github.com/repos/CuriousSugam/ActivityLogger/issues/events{/number}","events_url":"https://api.github.com/repos/CuriousSugam/ActivityLogger/events","assignees_url":"https://api.github.com/repos/CuriousSugam/ActivityLogger/assignees{/user}","branches_url":"https://api.github.com/repos/CuriousSugam/ActivityLogger/branches{/branch}","tags_url":"https://api.github.com/repos/CuriousSugam/ActivityLogger/tags","blobs_url":"https://api.github.com/repos/CuriousSugam/ActivityLogger/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CuriousSugam/ActivityLogger/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CuriousSugam/ActivityLogger/git/refs{/sha}","trees_url":"https://api.github.com/repos/CuriousSugam/ActivityLogger/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CuriousSugam/ActivityLogger/statuses/{sha}","languages_url":"https://api.github.com/repos/CuriousSugam/ActivityLogger/languages","stargazers_url":"https://api.github.com/repos/CuriousSugam/ActivityLogger/stargazers","contributors_url":"https://api.github.com/repos/CuriousSugam/ActivityLogger/contributors","subscribers_url":"https://api.github.com/repos/CuriousSugam/ActivityLogger/subscribers","subscription_url":"https://api.github.com/repos/CuriousSugam/ActivityLogger/subscription","commits_url":"https://api.github.com/repos/CuriousSugam/ActivityLogger/commits{/sha}","git_commits_url":"https://api.github.com/repos/CuriousSugam/ActivityLogger/git/commits{/sha}","comments_url":"https://api.github.com/repos/CuriousSugam/ActivityLogger/comments{/number}","issue_comment_url":"https://api.github.com/repos/CuriousSugam/ActivityLogger/issues/comments{/number}","contents_url":"https://api.github.com/repos/CuriousSugam/ActivityLogger/contents/{+path}","compare_url":"https://api.github.com/repos/CuriousSugam/ActivityLogger/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CuriousSugam/ActivityLogger/merges","archive_url":"https://api.github.com/repos/CuriousSugam/ActivityLogger/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CuriousSugam/ActivityLogger/downloads","issues_url":"https://api.github.com/repos/CuriousSugam/ActivityLogger/issues{/number}","pulls_url":"https://api.github.com/repos/CuriousSugam/ActivityLogger/pulls{/number}","milestones_url":"https://api.github.com/repos/CuriousSugam/ActivityLogger/milestones{/number}","notifications_url":"https://api.github.com/repos/CuriousSugam/ActivityLogger/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CuriousSugam/ActivityLogger/labels{/name}","releases_url":"https://api.github.com/repos/CuriousSugam/ActivityLogger/releases{/id}","deployments_url":"https://api.github.com/repos/CuriousSugam/ActivityLogger/deployments","created_at":"2016-07-01T08:41:11Z","updated_at":"2016-07-01T08:44:47Z","pushed_at":"2016-07-26T11:42:24Z","git_url":"git://github.com/CuriousSugam/ActivityLogger.git","ssh_url":"git@github.com:CuriousSugam/ActivityLogger.git","clone_url":"https://github.com/CuriousSugam/ActivityLogger.git","svn_url":"https://github.com/CuriousSugam/ActivityLogger","homepage":null,"size":382,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"CuriousSugam:dev","ref":"dev","sha":"d8fe645ec59acd93c5a6a6be688cd9dd5637bd2b","user":{"login":"CuriousSugam","id":10157383,"avatar_url":"https://avatars.githubusercontent.com/u/10157383?v=3","gravatar_id":"","url":"https://api.github.com/users/CuriousSugam","html_url":"https://github.com/CuriousSugam","followers_url":"https://api.github.com/users/CuriousSugam/followers","following_url":"https://api.github.com/users/CuriousSugam/following{/other_user}","gists_url":"https://api.github.com/users/CuriousSugam/gists{/gist_id}","starred_url":"https://api.github.com/users/CuriousSugam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CuriousSugam/subscriptions","organizations_url":"https://api.github.com/users/CuriousSugam/orgs","repos_url":"https://api.github.com/users/CuriousSugam/repos","events_url":"https://api.github.com/users/CuriousSugam/events{/privacy}","received_events_url":"https://api.github.com/users/CuriousSugam/received_events","type":"User","site_admin":false},"repo":{"id":62378442,"name":"ActivityLogger","full_name":"CuriousSugam/ActivityLogger","owner":{"login":"CuriousSugam","id":10157383,"avatar_url":"https://avatars.githubusercontent.com/u/10157383?v=3","gravatar_id":"","url":"https://api.github.com/users/CuriousSugam","html_url":"https://github.com/CuriousSugam","followers_url":"https://api.github.com/users/CuriousSugam/followers","following_url":"https://api.github.com/users/CuriousSugam/following{/other_user}","gists_url":"https://api.github.com/users/CuriousSugam/gists{/gist_id}","starred_url":"https://api.github.com/users/CuriousSugam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CuriousSugam/subscriptions","organizations_url":"https://api.github.com/users/CuriousSugam/orgs","repos_url":"https://api.github.com/users/CuriousSugam/repos","events_url":"https://api.github.com/users/CuriousSugam/events{/privacy}","received_events_url":"https://api.github.com/users/CuriousSugam/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/CuriousSugam/ActivityLogger","description":null,"fork":false,"url":"https://api.github.com/repos/CuriousSugam/ActivityLogger","forks_url":"https://api.github.com/repos/CuriousSugam/ActivityLogger/forks","keys_url":"https://api.github.com/repos/CuriousSugam/ActivityLogger/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CuriousSugam/ActivityLogger/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CuriousSugam/ActivityLogger/teams","hooks_url":"https://api.github.com/repos/CuriousSugam/ActivityLogger/hooks","issue_events_url":"https://api.github.com/repos/CuriousSugam/ActivityLogger/issues/events{/number}","events_url":"https://api.github.com/repos/CuriousSugam/ActivityLogger/events","assignees_url":"https://api.github.com/repos/CuriousSugam/ActivityLogger/assignees{/user}","branches_url":"https://api.github.com/repos/CuriousSugam/ActivityLogger/branches{/branch}","tags_url":"https://api.github.com/repos/CuriousSugam/ActivityLogger/tags","blobs_url":"https://api.github.com/repos/CuriousSugam/ActivityLogger/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CuriousSugam/ActivityLogger/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CuriousSugam/ActivityLogger/git/refs{/sha}","trees_url":"https://api.github.com/repos/CuriousSugam/ActivityLogger/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CuriousSugam/ActivityLogger/statuses/{sha}","languages_url":"https://api.github.com/repos/CuriousSugam/ActivityLogger/languages","stargazers_url":"https://api.github.com/repos/CuriousSugam/ActivityLogger/stargazers","contributors_url":"https://api.github.com/repos/CuriousSugam/ActivityLogger/contributors","subscribers_url":"https://api.github.com/repos/CuriousSugam/ActivityLogger/subscribers","subscription_url":"https://api.github.com/repos/CuriousSugam/ActivityLogger/subscription","commits_url":"https://api.github.com/repos/CuriousSugam/ActivityLogger/commits{/sha}","git_commits_url":"https://api.github.com/repos/CuriousSugam/ActivityLogger/git/commits{/sha}","comments_url":"https://api.github.com/repos/CuriousSugam/ActivityLogger/comments{/number}","issue_comment_url":"https://api.github.com/repos/CuriousSugam/ActivityLogger/issues/comments{/number}","contents_url":"https://api.github.com/repos/CuriousSugam/ActivityLogger/contents/{+path}","compare_url":"https://api.github.com/repos/CuriousSugam/ActivityLogger/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CuriousSugam/ActivityLogger/merges","archive_url":"https://api.github.com/repos/CuriousSugam/ActivityLogger/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CuriousSugam/ActivityLogger/downloads","issues_url":"https://api.github.com/repos/CuriousSugam/ActivityLogger/issues{/number}","pulls_url":"https://api.github.com/repos/CuriousSugam/ActivityLogger/pulls{/number}","milestones_url":"https://api.github.com/repos/CuriousSugam/ActivityLogger/milestones{/number}","notifications_url":"https://api.github.com/repos/CuriousSugam/ActivityLogger/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CuriousSugam/ActivityLogger/labels{/name}","releases_url":"https://api.github.com/repos/CuriousSugam/ActivityLogger/releases{/id}","deployments_url":"https://api.github.com/repos/CuriousSugam/ActivityLogger/deployments","created_at":"2016-07-01T08:41:11Z","updated_at":"2016-07-01T08:44:47Z","pushed_at":"2016-07-26T11:42:24Z","git_url":"git://github.com/CuriousSugam/ActivityLogger.git","ssh_url":"git@github.com:CuriousSugam/ActivityLogger.git","clone_url":"https://github.com/CuriousSugam/ActivityLogger.git","svn_url":"https://github.com/CuriousSugam/ActivityLogger","homepage":null,"size":382,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/CuriousSugam/ActivityLogger/pulls/11"},"html":{"href":"https://github.com/CuriousSugam/ActivityLogger/pull/11"},"issue":{"href":"https://api.github.com/repos/CuriousSugam/ActivityLogger/issues/11"},"comments":{"href":"https://api.github.com/repos/CuriousSugam/ActivityLogger/issues/11/comments"},"review_comments":{"href":"https://api.github.com/repos/CuriousSugam/ActivityLogger/pulls/11/comments"},"review_comment":{"href":"https://api.github.com/repos/CuriousSugam/ActivityLogger/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CuriousSugam/ActivityLogger/pulls/11/commits"},"statuses":{"href":"https://api.github.com/repos/CuriousSugam/ActivityLogger/statuses/1ad479d4c2891f550ca4eec69ad95e84b59aedd1"}}}}
{"actor":{"display_login":"manas-raj-shrestha"}}