{"action":"opened","number":18,"pull_request":{"url":"https://api.github.com/repos/Zackazt/CompTIA-Aplus-Study-Practice/pulls/18","id":85679166,"html_url":"https://github.com/Zackazt/CompTIA-Aplus-Study-Practice/pull/18","diff_url":"https://github.com/Zackazt/CompTIA-Aplus-Study-Practice/pull/18.diff","patch_url":"https://github.com/Zackazt/CompTIA-Aplus-Study-Practice/pull/18.patch","issue_url":"https://api.github.com/repos/Zackazt/CompTIA-Aplus-Study-Practice/issues/18","number":18,"state":"open","locked":false,"title":"Returns user to main activity when no longer sturggling with any questions while in struggle practice mode.","user":{"login":"Zackazt","id":12701185,"avatar_url":"https://avatars.githubusercontent.com/u/12701185?v=3","gravatar_id":"","url":"https://api.github.com/users/Zackazt","html_url":"https://github.com/Zackazt","followers_url":"https://api.github.com/users/Zackazt/followers","following_url":"https://api.github.com/users/Zackazt/following{/other_user}","gists_url":"https://api.github.com/users/Zackazt/gists{/gist_id}","starred_url":"https://api.github.com/users/Zackazt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zackazt/subscriptions","organizations_url":"https://api.github.com/users/Zackazt/orgs","repos_url":"https://api.github.com/users/Zackazt/repos","events_url":"https://api.github.com/users/Zackazt/events{/privacy}","received_events_url":"https://api.github.com/users/Zackazt/received_events","type":"User","site_admin":false},"body":"1. I started by creating a global boolean that helps differentiate between normal and struggle practice modes. \r\n2. I set the mode accordingly in the onCreate method based upon the choice variable received from the previous intent.  \r\n3. I added the checkIfDBIsValid method to determine whether or not there are any questions in the struggle database.\r\n4. If the user is in struggle practice mode and there are no longer any questions in the database, they are returned to the main activity and are provided a message stating that they are no longer struggling with any questions.\r\n5. I also re-worked the globalListAndIndexManager method to remove any questions from questionListGlobal so that questions the users have marked as not struggling during the session would not repeat after reshuffling.\r\n\r\nThe code is ready for code review.","created_at":"2016-09-17T16:34:08Z","updated_at":"2016-09-17T16:34:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Zackazt/CompTIA-Aplus-Study-Practice/pulls/18/commits","review_comments_url":"https://api.github.com/repos/Zackazt/CompTIA-Aplus-Study-Practice/pulls/18/comments","review_comment_url":"https://api.github.com/repos/Zackazt/CompTIA-Aplus-Study-Practice/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Zackazt/CompTIA-Aplus-Study-Practice/issues/18/comments","statuses_url":"https://api.github.com/repos/Zackazt/CompTIA-Aplus-Study-Practice/statuses/ea44dabcab9b39b67dbff2828c53b80a07d4fe95","head":{"label":"Zackazt:Issue-#17","ref":"Issue-#17","sha":"ea44dabcab9b39b67dbff2828c53b80a07d4fe95","user":{"login":"Zackazt","id":12701185,"avatar_url":"https://avatars.githubusercontent.com/u/12701185?v=3","gravatar_id":"","url":"https://api.github.com/users/Zackazt","html_url":"https://github.com/Zackazt","followers_url":"https://api.github.com/users/Zackazt/followers","following_url":"https://api.github.com/users/Zackazt/following{/other_user}","gists_url":"https://api.github.com/users/Zackazt/gists{/gist_id}","starred_url":"https://api.github.com/users/Zackazt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zackazt/subscriptions","organizations_url":"https://api.github.com/users/Zackazt/orgs","repos_url":"https://api.github.com/users/Zackazt/repos","events_url":"https://api.github.com/users/Zackazt/events{/privacy}","received_events_url":"https://api.github.com/users/Zackazt/received_events","type":"User","site_admin":false},"repo":{"id":68134313,"name":"CompTIA-Aplus-Study-Practice","full_name":"Zackazt/CompTIA-Aplus-Study-Practice","owner":{"login":"Zackazt","id":12701185,"avatar_url":"https://avatars.githubusercontent.com/u/12701185?v=3","gravatar_id":"","url":"https://api.github.com/users/Zackazt","html_url":"https://github.com/Zackazt","followers_url":"https://api.github.com/users/Zackazt/followers","following_url":"https://api.github.com/users/Zackazt/following{/other_user}","gists_url":"https://api.github.com/users/Zackazt/gists{/gist_id}","starred_url":"https://api.github.com/users/Zackazt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zackazt/subscriptions","organizations_url":"https://api.github.com/users/Zackazt/orgs","repos_url":"https://api.github.com/users/Zackazt/repos","events_url":"https://api.github.com/users/Zackazt/events{/privacy}","received_events_url":"https://api.github.com/users/Zackazt/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Zackazt/CompTIA-Aplus-Study-Practice","description":"Android application used for studying for the A+ exam. ","fork":false,"url":"https://api.github.com/repos/Zackazt/CompTIA-Aplus-Study-Practice","forks_url":"https://api.github.com/repos/Zackazt/CompTIA-Aplus-Study-Practice/forks","keys_url":"https://api.github.com/repos/Zackazt/CompTIA-Aplus-Study-Practice/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Zackazt/CompTIA-Aplus-Study-Practice/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Zackazt/CompTIA-Aplus-Study-Practice/teams","hooks_url":"https://api.github.com/repos/Zackazt/CompTIA-Aplus-Study-Practice/hooks","issue_events_url":"https://api.github.com/repos/Zackazt/CompTIA-Aplus-Study-Practice/issues/events{/number}","events_url":"https://api.github.com/repos/Zackazt/CompTIA-Aplus-Study-Practice/events","assignees_url":"https://api.github.com/repos/Zackazt/CompTIA-Aplus-Study-Practice/assignees{/user}","branches_url":"https://api.github.com/repos/Zackazt/CompTIA-Aplus-Study-Practice/branches{/branch}","tags_url":"https://api.github.com/repos/Zackazt/CompTIA-Aplus-Study-Practice/tags","blobs_url":"https://api.github.com/repos/Zackazt/CompTIA-Aplus-Study-Practice/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Zackazt/CompTIA-Aplus-Study-Practice/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Zackazt/CompTIA-Aplus-Study-Practice/git/refs{/sha}","trees_url":"https://api.github.com/repos/Zackazt/CompTIA-Aplus-Study-Practice/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Zackazt/CompTIA-Aplus-Study-Practice/statuses/{sha}","languages_url":"https://api.github.com/repos/Zackazt/CompTIA-Aplus-Study-Practice/languages","stargazers_url":"https://api.github.com/repos/Zackazt/CompTIA-Aplus-Study-Practice/stargazers","contributors_url":"https://api.github.com/repos/Zackazt/CompTIA-Aplus-Study-Practice/contributors","subscribers_url":"https://api.github.com/repos/Zackazt/CompTIA-Aplus-Study-Practice/subscribers","subscription_url":"https://api.github.com/repos/Zackazt/CompTIA-Aplus-Study-Practice/subscription","commits_url":"https://api.github.com/repos/Zackazt/CompTIA-Aplus-Study-Practice/commits{/sha}","git_commits_url":"https://api.github.com/repos/Zackazt/CompTIA-Aplus-Study-Practice/git/commits{/sha}","comments_url":"https://api.github.com/repos/Zackazt/CompTIA-Aplus-Study-Practice/comments{/number}","issue_comment_url":"https://api.github.com/repos/Zackazt/CompTIA-Aplus-Study-Practice/issues/comments{/number}","contents_url":"https://api.github.com/repos/Zackazt/CompTIA-Aplus-Study-Practice/contents/{+path}","compare_url":"https://api.github.com/repos/Zackazt/CompTIA-Aplus-Study-Practice/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Zackazt/CompTIA-Aplus-Study-Practice/merges","archive_url":"https://api.github.com/repos/Zackazt/CompTIA-Aplus-Study-Practice/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Zackazt/CompTIA-Aplus-Study-Practice/downloads","issues_url":"https://api.github.com/repos/Zackazt/CompTIA-Aplus-Study-Practice/issues{/number}","pulls_url":"https://api.github.com/repos/Zackazt/CompTIA-Aplus-Study-Practice/pulls{/number}","milestones_url":"https://api.github.com/repos/Zackazt/CompTIA-Aplus-Study-Practice/milestones{/number}","notifications_url":"https://api.github.com/repos/Zackazt/CompTIA-Aplus-Study-Practice/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Zackazt/CompTIA-Aplus-Study-Practice/labels{/name}","releases_url":"https://api.github.com/repos/Zackazt/CompTIA-Aplus-Study-Practice/releases{/id}","deployments_url":"https://api.github.com/repos/Zackazt/CompTIA-Aplus-Study-Practice/deployments","created_at":"2016-09-13T18:09:03Z","updated_at":"2016-09-14T00:09:58Z","pushed_at":"2016-09-17T16:26:22Z","git_url":"git://github.com/Zackazt/CompTIA-Aplus-Study-Practice.git","ssh_url":"git@github.com:Zackazt/CompTIA-Aplus-Study-Practice.git","clone_url":"https://github.com/Zackazt/CompTIA-Aplus-Study-Practice.git","svn_url":"https://github.com/Zackazt/CompTIA-Aplus-Study-Practice","homepage":"","size":5353,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":6,"forks":0,"open_issues":6,"watchers":1,"default_branch":"master"}},"base":{"label":"Zackazt:master","ref":"master","sha":"7a1dc5a445347667ae700d266d9894868b5f2d41","user":{"login":"Zackazt","id":12701185,"avatar_url":"https://avatars.githubusercontent.com/u/12701185?v=3","gravatar_id":"","url":"https://api.github.com/users/Zackazt","html_url":"https://github.com/Zackazt","followers_url":"https://api.github.com/users/Zackazt/followers","following_url":"https://api.github.com/users/Zackazt/following{/other_user}","gists_url":"https://api.github.com/users/Zackazt/gists{/gist_id}","starred_url":"https://api.github.com/users/Zackazt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zackazt/subscriptions","organizations_url":"https://api.github.com/users/Zackazt/orgs","repos_url":"https://api.github.com/users/Zackazt/repos","events_url":"https://api.github.com/users/Zackazt/events{/privacy}","received_events_url":"https://api.github.com/users/Zackazt/received_events","type":"User","site_admin":false},"repo":{"id":68134313,"name":"CompTIA-Aplus-Study-Practice","full_name":"Zackazt/CompTIA-Aplus-Study-Practice","owner":{"login":"Zackazt","id":12701185,"avatar_url":"https://avatars.githubusercontent.com/u/12701185?v=3","gravatar_id":"","url":"https://api.github.com/users/Zackazt","html_url":"https://github.com/Zackazt","followers_url":"https://api.github.com/users/Zackazt/followers","following_url":"https://api.github.com/users/Zackazt/following{/other_user}","gists_url":"https://api.github.com/users/Zackazt/gists{/gist_id}","starred_url":"https://api.github.com/users/Zackazt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Zackazt/subscriptions","organizations_url":"https://api.github.com/users/Zackazt/orgs","repos_url":"https://api.github.com/users/Zackazt/repos","events_url":"https://api.github.com/users/Zackazt/events{/privacy}","received_events_url":"https://api.github.com/users/Zackazt/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Zackazt/CompTIA-Aplus-Study-Practice","description":"Android application used for studying for the A+ exam. ","fork":false,"url":"https://api.github.com/repos/Zackazt/CompTIA-Aplus-Study-Practice","forks_url":"https://api.github.com/repos/Zackazt/CompTIA-Aplus-Study-Practice/forks","keys_url":"https://api.github.com/repos/Zackazt/CompTIA-Aplus-Study-Practice/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Zackazt/CompTIA-Aplus-Study-Practice/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Zackazt/CompTIA-Aplus-Study-Practice/teams","hooks_url":"https://api.github.com/repos/Zackazt/CompTIA-Aplus-Study-Practice/hooks","issue_events_url":"https://api.github.com/repos/Zackazt/CompTIA-Aplus-Study-Practice/issues/events{/number}","events_url":"https://api.github.com/repos/Zackazt/CompTIA-Aplus-Study-Practice/events","assignees_url":"https://api.github.com/repos/Zackazt/CompTIA-Aplus-Study-Practice/assignees{/user}","branches_url":"https://api.github.com/repos/Zackazt/CompTIA-Aplus-Study-Practice/branches{/branch}","tags_url":"https://api.github.com/repos/Zackazt/CompTIA-Aplus-Study-Practice/tags","blobs_url":"https://api.github.com/repos/Zackazt/CompTIA-Aplus-Study-Practice/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Zackazt/CompTIA-Aplus-Study-Practice/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Zackazt/CompTIA-Aplus-Study-Practice/git/refs{/sha}","trees_url":"https://api.github.com/repos/Zackazt/CompTIA-Aplus-Study-Practice/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Zackazt/CompTIA-Aplus-Study-Practice/statuses/{sha}","languages_url":"https://api.github.com/repos/Zackazt/CompTIA-Aplus-Study-Practice/languages","stargazers_url":"https://api.github.com/repos/Zackazt/CompTIA-Aplus-Study-Practice/stargazers","contributors_url":"https://api.github.com/repos/Zackazt/CompTIA-Aplus-Study-Practice/contributors","subscribers_url":"https://api.github.com/repos/Zackazt/CompTIA-Aplus-Study-Practice/subscribers","subscription_url":"https://api.github.com/repos/Zackazt/CompTIA-Aplus-Study-Practice/subscription","commits_url":"https://api.github.com/repos/Zackazt/CompTIA-Aplus-Study-Practice/commits{/sha}","git_commits_url":"https://api.github.com/repos/Zackazt/CompTIA-Aplus-Study-Practice/git/commits{/sha}","comments_url":"https://api.github.com/repos/Zackazt/CompTIA-Aplus-Study-Practice/comments{/number}","issue_comment_url":"https://api.github.com/repos/Zackazt/CompTIA-Aplus-Study-Practice/issues/comments{/number}","contents_url":"https://api.github.com/repos/Zackazt/CompTIA-Aplus-Study-Practice/contents/{+path}","compare_url":"https://api.github.com/repos/Zackazt/CompTIA-Aplus-Study-Practice/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Zackazt/CompTIA-Aplus-Study-Practice/merges","archive_url":"https://api.github.com/repos/Zackazt/CompTIA-Aplus-Study-Practice/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Zackazt/CompTIA-Aplus-Study-Practice/downloads","issues_url":"https://api.github.com/repos/Zackazt/CompTIA-Aplus-Study-Practice/issues{/number}","pulls_url":"https://api.github.com/repos/Zackazt/CompTIA-Aplus-Study-Practice/pulls{/number}","milestones_url":"https://api.github.com/repos/Zackazt/CompTIA-Aplus-Study-Practice/milestones{/number}","notifications_url":"https://api.github.com/repos/Zackazt/CompTIA-Aplus-Study-Practice/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Zackazt/CompTIA-Aplus-Study-Practice/labels{/name}","releases_url":"https://api.github.com/repos/Zackazt/CompTIA-Aplus-Study-Practice/releases{/id}","deployments_url":"https://api.github.com/repos/Zackazt/CompTIA-Aplus-Study-Practice/deployments","created_at":"2016-09-13T18:09:03Z","updated_at":"2016-09-14T00:09:58Z","pushed_at":"2016-09-17T16:26:22Z","git_url":"git://github.com/Zackazt/CompTIA-Aplus-Study-Practice.git","ssh_url":"git@github.com:Zackazt/CompTIA-Aplus-Study-Practice.git","clone_url":"https://github.com/Zackazt/CompTIA-Aplus-Study-Practice.git","svn_url":"https://github.com/Zackazt/CompTIA-Aplus-Study-Practice","homepage":"","size":5353,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":6,"forks":0,"open_issues":6,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Zackazt/CompTIA-Aplus-Study-Practice/pulls/18"},"html":{"href":"https://github.com/Zackazt/CompTIA-Aplus-Study-Practice/pull/18"},"issue":{"href":"https://api.github.com/repos/Zackazt/CompTIA-Aplus-Study-Practice/issues/18"},"comments":{"href":"https://api.github.com/repos/Zackazt/CompTIA-Aplus-Study-Practice/issues/18/comments"},"review_comments":{"href":"https://api.github.com/repos/Zackazt/CompTIA-Aplus-Study-Practice/pulls/18/comments"},"review_comment":{"href":"https://api.github.com/repos/Zackazt/CompTIA-Aplus-Study-Practice/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Zackazt/CompTIA-Aplus-Study-Practice/pulls/18/commits"},"statuses":{"href":"https://api.github.com/repos/Zackazt/CompTIA-Aplus-Study-Practice/statuses/ea44dabcab9b39b67dbff2828c53b80a07d4fe95"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":47,"deletions":4,"changed_files":1}}
{"actor":{"display_login":"Zackazt"}}