{"action":"created","comment":{"url":"https://api.github.com/repos/openMF/self-service-app/pulls/comments/86672754","pull_request_review_id":7321294,"id":86672754,"diff_hunk":"@@ -126,27 +138,43 @@ public void onItemLongPress(View childView, int position) {\n \n     @Override\n     public void showErrorFetchingRecentTransactions(String message) {\n-        Toast.makeText(getActivity(), message, Toast.LENGTH_LONG).show();\n+        setErrorView(true, message, R.drawable.ic_error_black_24dp);\n+        if (swipeTransactionContainer.isRefreshing()) {\n+            swipeTransactionContainer.setRefreshing(false);\n+        }\n     }\n \n     @Override\n     public void showRecentTransactions(List<Transaction> recentTransactionList) {\n-        this.recentTransactionList = recentTransactionList;\n-        inflateRecentTransactionList();\n+        if (recentTransactionList.size() > 0) {\n+            this.recentTransactionList.clear();\n+            this.recentTransactionList.addAll(recentTransactionList);\n+            recentTransactionsListAdapter.notifyDataSetChanged();\n+        } else {\n+            setErrorView(true, getString(R.string.msg_no_transaction), R.drawable","path":"app/src/main/java/org/mifos/selfserviceapp/ui/fragments/RecentTransactionsFragment.java","position":71,"original_position":71,"commit_id":"a5f5510ad5df5ffb31440d05f76c93eac0f30595","original_commit_id":"a5f5510ad5df5ffb31440d05f76c93eac0f30595","user":{"login":"therajanmaurya","id":5724482,"avatar_url":"https://avatars.githubusercontent.com/u/5724482?v=3","gravatar_id":"","url":"https://api.github.com/users/therajanmaurya","html_url":"https://github.com/therajanmaurya","followers_url":"https://api.github.com/users/therajanmaurya/followers","following_url":"https://api.github.com/users/therajanmaurya/following{/other_user}","gists_url":"https://api.github.com/users/therajanmaurya/gists{/gist_id}","starred_url":"https://api.github.com/users/therajanmaurya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/therajanmaurya/subscriptions","organizations_url":"https://api.github.com/users/therajanmaurya/orgs","repos_url":"https://api.github.com/users/therajanmaurya/repos","events_url":"https://api.github.com/users/therajanmaurya/events{/privacy}","received_events_url":"https://api.github.com/users/therajanmaurya/received_events","type":"User","site_admin":false},"body":"It's not an error that there is no transaction to show.","created_at":"2016-11-05T20:34:30Z","updated_at":"2016-11-05T20:34:30Z","html_url":"https://github.com/openMF/self-service-app/pull/55#discussion_r86672754","pull_request_url":"https://api.github.com/repos/openMF/self-service-app/pulls/55","_links":{"self":{"href":"https://api.github.com/repos/openMF/self-service-app/pulls/comments/86672754"},"html":{"href":"https://github.com/openMF/self-service-app/pull/55#discussion_r86672754"},"pull_request":{"href":"https://api.github.com/repos/openMF/self-service-app/pulls/55"}}},"pull_request":{"url":"https://api.github.com/repos/openMF/self-service-app/pulls/55","id":91758723,"html_url":"https://github.com/openMF/self-service-app/pull/55","diff_url":"https://github.com/openMF/self-service-app/pull/55.diff","patch_url":"https://github.com/openMF/self-service-app/pull/55.patch","issue_url":"https://api.github.com/repos/openMF/self-service-app/issues/55","number":55,"state":"open","locked":false,"title":"fix: Show Valid Message In Recent Transaction with reference to issue #49","user":{"login":"sagar15795","id":5468111,"avatar_url":"https://avatars.githubusercontent.com/u/5468111?v=3","gravatar_id":"","url":"https://api.github.com/users/sagar15795","html_url":"https://github.com/sagar15795","followers_url":"https://api.github.com/users/sagar15795/followers","following_url":"https://api.github.com/users/sagar15795/following{/other_user}","gists_url":"https://api.github.com/users/sagar15795/gists{/gist_id}","starred_url":"https://api.github.com/users/sagar15795/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sagar15795/subscriptions","organizations_url":"https://api.github.com/users/sagar15795/orgs","repos_url":"https://api.github.com/users/sagar15795/repos","events_url":"https://api.github.com/users/sagar15795/events{/privacy}","received_events_url":"https://api.github.com/users/sagar15795/received_events","type":"User","site_admin":false},"body":"Changes\r\n\r\n- Added Error view in fragment_recent_transactions.xml\r\n- Added private method to show error view in RecentTransactionsFragment class\r\n- remove inflateRecentTransactionList method and used notifyDataSetChanged method to update RecyclerView Adapter Data","created_at":"2016-11-01T10:09:18Z","updated_at":"2016-11-05T20:34:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"8b4da45f5bbf45ed515e8bfeece4ce172e526f49","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/openMF/self-service-app/pulls/55/commits","review_comments_url":"https://api.github.com/repos/openMF/self-service-app/pulls/55/comments","review_comment_url":"https://api.github.com/repos/openMF/self-service-app/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openMF/self-service-app/issues/55/comments","statuses_url":"https://api.github.com/repos/openMF/self-service-app/statuses/a5f5510ad5df5ffb31440d05f76c93eac0f30595","head":{"label":"sagar15795:RecentTransactionMessage","ref":"RecentTransactionMessage","sha":"a5f5510ad5df5ffb31440d05f76c93eac0f30595","user":{"login":"sagar15795","id":5468111,"avatar_url":"https://avatars.githubusercontent.com/u/5468111?v=3","gravatar_id":"","url":"https://api.github.com/users/sagar15795","html_url":"https://github.com/sagar15795","followers_url":"https://api.github.com/users/sagar15795/followers","following_url":"https://api.github.com/users/sagar15795/following{/other_user}","gists_url":"https://api.github.com/users/sagar15795/gists{/gist_id}","starred_url":"https://api.github.com/users/sagar15795/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sagar15795/subscriptions","organizations_url":"https://api.github.com/users/sagar15795/orgs","repos_url":"https://api.github.com/users/sagar15795/repos","events_url":"https://api.github.com/users/sagar15795/events{/privacy}","received_events_url":"https://api.github.com/users/sagar15795/received_events","type":"User","site_admin":false},"repo":{"id":71233508,"name":"self-service-app","full_name":"sagar15795/self-service-app","owner":{"login":"sagar15795","id":5468111,"avatar_url":"https://avatars.githubusercontent.com/u/5468111?v=3","gravatar_id":"","url":"https://api.github.com/users/sagar15795","html_url":"https://github.com/sagar15795","followers_url":"https://api.github.com/users/sagar15795/followers","following_url":"https://api.github.com/users/sagar15795/following{/other_user}","gists_url":"https://api.github.com/users/sagar15795/gists{/gist_id}","starred_url":"https://api.github.com/users/sagar15795/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sagar15795/subscriptions","organizations_url":"https://api.github.com/users/sagar15795/orgs","repos_url":"https://api.github.com/users/sagar15795/repos","events_url":"https://api.github.com/users/sagar15795/events{/privacy}","received_events_url":"https://api.github.com/users/sagar15795/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sagar15795/self-service-app","description":"Repository for the Mifos Android Self Service App for clients","fork":true,"url":"https://api.github.com/repos/sagar15795/self-service-app","forks_url":"https://api.github.com/repos/sagar15795/self-service-app/forks","keys_url":"https://api.github.com/repos/sagar15795/self-service-app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sagar15795/self-service-app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sagar15795/self-service-app/teams","hooks_url":"https://api.github.com/repos/sagar15795/self-service-app/hooks","issue_events_url":"https://api.github.com/repos/sagar15795/self-service-app/issues/events{/number}","events_url":"https://api.github.com/repos/sagar15795/self-service-app/events","assignees_url":"https://api.github.com/repos/sagar15795/self-service-app/assignees{/user}","branches_url":"https://api.github.com/repos/sagar15795/self-service-app/branches{/branch}","tags_url":"https://api.github.com/repos/sagar15795/self-service-app/tags","blobs_url":"https://api.github.com/repos/sagar15795/self-service-app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sagar15795/self-service-app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sagar15795/self-service-app/git/refs{/sha}","trees_url":"https://api.github.com/repos/sagar15795/self-service-app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sagar15795/self-service-app/statuses/{sha}","languages_url":"https://api.github.com/repos/sagar15795/self-service-app/languages","stargazers_url":"https://api.github.com/repos/sagar15795/self-service-app/stargazers","contributors_url":"https://api.github.com/repos/sagar15795/self-service-app/contributors","subscribers_url":"https://api.github.com/repos/sagar15795/self-service-app/subscribers","subscription_url":"https://api.github.com/repos/sagar15795/self-service-app/subscription","commits_url":"https://api.github.com/repos/sagar15795/self-service-app/commits{/sha}","git_commits_url":"https://api.github.com/repos/sagar15795/self-service-app/git/commits{/sha}","comments_url":"https://api.github.com/repos/sagar15795/self-service-app/comments{/number}","issue_comment_url":"https://api.github.com/repos/sagar15795/self-service-app/issues/comments{/number}","contents_url":"https://api.github.com/repos/sagar15795/self-service-app/contents/{+path}","compare_url":"https://api.github.com/repos/sagar15795/self-service-app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sagar15795/self-service-app/merges","archive_url":"https://api.github.com/repos/sagar15795/self-service-app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sagar15795/self-service-app/downloads","issues_url":"https://api.github.com/repos/sagar15795/self-service-app/issues{/number}","pulls_url":"https://api.github.com/repos/sagar15795/self-service-app/pulls{/number}","milestones_url":"https://api.github.com/repos/sagar15795/self-service-app/milestones{/number}","notifications_url":"https://api.github.com/repos/sagar15795/self-service-app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sagar15795/self-service-app/labels{/name}","releases_url":"https://api.github.com/repos/sagar15795/self-service-app/releases{/id}","deployments_url":"https://api.github.com/repos/sagar15795/self-service-app/deployments","created_at":"2016-10-18T09:47:45Z","updated_at":"2016-10-18T09:47:46Z","pushed_at":"2016-11-01T10:06:36Z","git_url":"git://github.com/sagar15795/self-service-app.git","ssh_url":"git@github.com:sagar15795/self-service-app.git","clone_url":"https://github.com/sagar15795/self-service-app.git","svn_url":"https://github.com/sagar15795/self-service-app","homepage":null,"size":343,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"openMF:development","ref":"development","sha":"6f3325e9be8d8725fe553868e811aca93584d967","user":{"login":"openMF","id":3473607,"avatar_url":"https://avatars.githubusercontent.com/u/3473607?v=3","gravatar_id":"","url":"https://api.github.com/users/openMF","html_url":"https://github.com/openMF","followers_url":"https://api.github.com/users/openMF/followers","following_url":"https://api.github.com/users/openMF/following{/other_user}","gists_url":"https://api.github.com/users/openMF/gists{/gist_id}","starred_url":"https://api.github.com/users/openMF/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openMF/subscriptions","organizations_url":"https://api.github.com/users/openMF/orgs","repos_url":"https://api.github.com/users/openMF/repos","events_url":"https://api.github.com/users/openMF/events{/privacy}","received_events_url":"https://api.github.com/users/openMF/received_events","type":"Organization","site_admin":false},"repo":{"id":59611171,"name":"self-service-app","full_name":"openMF/self-service-app","owner":{"login":"openMF","id":3473607,"avatar_url":"https://avatars.githubusercontent.com/u/3473607?v=3","gravatar_id":"","url":"https://api.github.com/users/openMF","html_url":"https://github.com/openMF","followers_url":"https://api.github.com/users/openMF/followers","following_url":"https://api.github.com/users/openMF/following{/other_user}","gists_url":"https://api.github.com/users/openMF/gists{/gist_id}","starred_url":"https://api.github.com/users/openMF/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openMF/subscriptions","organizations_url":"https://api.github.com/users/openMF/orgs","repos_url":"https://api.github.com/users/openMF/repos","events_url":"https://api.github.com/users/openMF/events{/privacy}","received_events_url":"https://api.github.com/users/openMF/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openMF/self-service-app","description":"Repository for the Mifos Android Self Service App for clients","fork":false,"url":"https://api.github.com/repos/openMF/self-service-app","forks_url":"https://api.github.com/repos/openMF/self-service-app/forks","keys_url":"https://api.github.com/repos/openMF/self-service-app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openMF/self-service-app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openMF/self-service-app/teams","hooks_url":"https://api.github.com/repos/openMF/self-service-app/hooks","issue_events_url":"https://api.github.com/repos/openMF/self-service-app/issues/events{/number}","events_url":"https://api.github.com/repos/openMF/self-service-app/events","assignees_url":"https://api.github.com/repos/openMF/self-service-app/assignees{/user}","branches_url":"https://api.github.com/repos/openMF/self-service-app/branches{/branch}","tags_url":"https://api.github.com/repos/openMF/self-service-app/tags","blobs_url":"https://api.github.com/repos/openMF/self-service-app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openMF/self-service-app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openMF/self-service-app/git/refs{/sha}","trees_url":"https://api.github.com/repos/openMF/self-service-app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openMF/self-service-app/statuses/{sha}","languages_url":"https://api.github.com/repos/openMF/self-service-app/languages","stargazers_url":"https://api.github.com/repos/openMF/self-service-app/stargazers","contributors_url":"https://api.github.com/repos/openMF/self-service-app/contributors","subscribers_url":"https://api.github.com/repos/openMF/self-service-app/subscribers","subscription_url":"https://api.github.com/repos/openMF/self-service-app/subscription","commits_url":"https://api.github.com/repos/openMF/self-service-app/commits{/sha}","git_commits_url":"https://api.github.com/repos/openMF/self-service-app/git/commits{/sha}","comments_url":"https://api.github.com/repos/openMF/self-service-app/comments{/number}","issue_comment_url":"https://api.github.com/repos/openMF/self-service-app/issues/comments{/number}","contents_url":"https://api.github.com/repos/openMF/self-service-app/contents/{+path}","compare_url":"https://api.github.com/repos/openMF/self-service-app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openMF/self-service-app/merges","archive_url":"https://api.github.com/repos/openMF/self-service-app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openMF/self-service-app/downloads","issues_url":"https://api.github.com/repos/openMF/self-service-app/issues{/number}","pulls_url":"https://api.github.com/repos/openMF/self-service-app/pulls{/number}","milestones_url":"https://api.github.com/repos/openMF/self-service-app/milestones{/number}","notifications_url":"https://api.github.com/repos/openMF/self-service-app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openMF/self-service-app/labels{/name}","releases_url":"https://api.github.com/repos/openMF/self-service-app/releases{/id}","deployments_url":"https://api.github.com/repos/openMF/self-service-app/deployments","created_at":"2016-05-24T21:51:53Z","updated_at":"2016-11-01T10:19:34Z","pushed_at":"2016-11-04T16:51:36Z","git_url":"git://github.com/openMF/self-service-app.git","ssh_url":"git@github.com:openMF/self-service-app.git","clone_url":"https://github.com/openMF/self-service-app.git","svn_url":"https://github.com/openMF/self-service-app","homepage":null,"size":410,"stargazers_count":6,"watchers_count":6,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":16,"mirror_url":null,"open_issues_count":15,"forks":16,"open_issues":15,"watchers":6,"default_branch":"development"}},"_links":{"self":{"href":"https://api.github.com/repos/openMF/self-service-app/pulls/55"},"html":{"href":"https://github.com/openMF/self-service-app/pull/55"},"issue":{"href":"https://api.github.com/repos/openMF/self-service-app/issues/55"},"comments":{"href":"https://api.github.com/repos/openMF/self-service-app/issues/55/comments"},"review_comments":{"href":"https://api.github.com/repos/openMF/self-service-app/pulls/55/comments"},"review_comment":{"href":"https://api.github.com/repos/openMF/self-service-app/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openMF/self-service-app/pulls/55/commits"},"statuses":{"href":"https://api.github.com/repos/openMF/self-service-app/statuses/a5f5510ad5df5ffb31440d05f76c93eac0f30595"}}}}
{"actor":{"display_login":"therajanmaurya"}}