{"action":"created","comment":{"url":"https://api.github.com/repos/fossasia/open-event-android/pulls/comments/243488959","pull_request_review_id":187273708,"id":243488959,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0MzQ4ODk1OQ==","diff_hunk":"@@ -69,30 +69,24 @@ class MainActivity : AppCompatActivity() {\n \n         supportActionBar?.title = \"Events\"\n \n-        val bundle = intent.extras\n+        val bundle = if (savedInstanceState == null) intent.extras else null\n \n-        if (savedInstanceState == null) {\n-            loadFragment(supportFragmentManager, EventsFragment(), frameContainer.id)\n+        if (bundle != null && bundle.getBoolean(TO_SEARCH)) {\n+            loadFragment(supportFragmentManager, SearchFragment(), frameContainer.id)\n+            supportActionBar?.title = \"Search\"\n+            navigation.selectedItemId = navigation_search\n         }\n \n-        else {\n-            if (bundle != null && bundle.getBoolean(TO_SEARCH)) {\n-                loadFragment(supportFragmentManager, SearchFragment(), frameContainer.id)\n-                supportActionBar?.title = \"Search\"\n-                navigation.selectedItemId = navigation_search\n-            }\n-\n-            if (bundle != null && bundle.getBoolean(LAUNCH_ATTENDEE)) {\n-                val fragment = AttendeeFragment()\n-                fragment.arguments = bundle\n-                loadFragment(supportFragmentManager, fragment, frameContainer.id)\n-            }\n+        if (bundle != null && bundle.getBoolean(LAUNCH_ATTENDEE)) {\n+            val fragment = AttendeeFragment()\n+            fragment.arguments = bundle\n+            loadFragment(supportFragmentManager, fragment, frameContainer.id)\n+        }\n \n-            if (bundle != null && (bundle.getBoolean(TICKETS) || bundle.getBoolean(LAUNCH_TICKETS))) {\n-                loadFragment(supportFragmentManager, OrdersUnderUserFragment(), frameContainer.id)\n-                supportActionBar?.title = \"Tickets\"\n-                navigation.selectedItemId = R.id.navigation_tickets\n-            }\n+        if (bundle != null && (bundle.getBoolean(TICKETS) || bundle.getBoolean(LAUNCH_TICKETS))) {\n+            loadFragment(supportFragmentManager, OrdersUnderUserFragment(), frameContainer.id)\n+            supportActionBar?.title = \"Tickets\"\n+            navigation.selectedItemId = R.id.navigation_tickets","path":"app/src/main/java/org/fossasia/openevent/general/MainActivity.kt","position":null,"original_position":41,"commit_id":"a1797de213d1cfec888f538985317d0c83e97138","original_commit_id":"dd45a36ed63929c6a767e9bebd3cbc034b543445","user":{"login":"liveHarshit","id":27783786,"node_id":"MDQ6VXNlcjI3NzgzNzg2","avatar_url":"https://avatars1.githubusercontent.com/u/27783786?v=4","gravatar_id":"","url":"https://api.github.com/users/liveHarshit","html_url":"https://github.com/liveHarshit","followers_url":"https://api.github.com/users/liveHarshit/followers","following_url":"https://api.github.com/users/liveHarshit/following{/other_user}","gists_url":"https://api.github.com/users/liveHarshit/gists{/gist_id}","starred_url":"https://api.github.com/users/liveHarshit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liveHarshit/subscriptions","organizations_url":"https://api.github.com/users/liveHarshit/orgs","repos_url":"https://api.github.com/users/liveHarshit/repos","events_url":"https://api.github.com/users/liveHarshit/events{/privacy}","received_events_url":"https://api.github.com/users/liveHarshit/received_events","type":"User","site_admin":false},"body":"Updated","created_at":"2018-12-21T05:07:42Z","updated_at":"2018-12-21T05:07:43Z","html_url":"https://github.com/fossasia/open-event-android/pull/748#discussion_r243488959","pull_request_url":"https://api.github.com/repos/fossasia/open-event-android/pulls/748","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/fossasia/open-event-android/pulls/comments/243488959"},"html":{"href":"https://github.com/fossasia/open-event-android/pull/748#discussion_r243488959"},"pull_request":{"href":"https://api.github.com/repos/fossasia/open-event-android/pulls/748"}},"in_reply_to_id":243487298},"pull_request":{"url":"https://api.github.com/repos/fossasia/open-event-android/pulls/748","id":239826778,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM5ODI2Nzc4","html_url":"https://github.com/fossasia/open-event-android/pull/748","diff_url":"https://github.com/fossasia/open-event-android/pull/748.diff","patch_url":"https://github.com/fossasia/open-event-android/pull/748.patch","issue_url":"https://api.github.com/repos/fossasia/open-event-android/issues/748","number":748,"state":"open","locked":false,"title":"fix: Handle configuration changes for MainActivity","user":{"login":"liveHarshit","id":27783786,"node_id":"MDQ6VXNlcjI3NzgzNzg2","avatar_url":"https://avatars1.githubusercontent.com/u/27783786?v=4","gravatar_id":"","url":"https://api.github.com/users/liveHarshit","html_url":"https://github.com/liveHarshit","followers_url":"https://api.github.com/users/liveHarshit/followers","following_url":"https://api.github.com/users/liveHarshit/following{/other_user}","gists_url":"https://api.github.com/users/liveHarshit/gists{/gist_id}","starred_url":"https://api.github.com/users/liveHarshit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liveHarshit/subscriptions","organizations_url":"https://api.github.com/users/liveHarshit/orgs","repos_url":"https://api.github.com/users/liveHarshit/repos","events_url":"https://api.github.com/users/liveHarshit/events{/privacy}","received_events_url":"https://api.github.com/users/liveHarshit/received_events","type":"User","site_admin":false},"body":"Fixes #744 #738 \r\n","created_at":"2018-12-19T12:57:45Z","updated_at":"2018-12-21T05:07:43Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4b81b2ea258160a53c30206be9d1a3d8a1014f5e","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/fossasia/open-event-android/pulls/748/commits","review_comments_url":"https://api.github.com/repos/fossasia/open-event-android/pulls/748/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/748/comments","statuses_url":"https://api.github.com/repos/fossasia/open-event-android/statuses/a1797de213d1cfec888f538985317d0c83e97138","head":{"label":"liveHarshit:issue744","ref":"issue744","sha":"a1797de213d1cfec888f538985317d0c83e97138","user":{"login":"liveHarshit","id":27783786,"node_id":"MDQ6VXNlcjI3NzgzNzg2","avatar_url":"https://avatars1.githubusercontent.com/u/27783786?v=4","gravatar_id":"","url":"https://api.github.com/users/liveHarshit","html_url":"https://github.com/liveHarshit","followers_url":"https://api.github.com/users/liveHarshit/followers","following_url":"https://api.github.com/users/liveHarshit/following{/other_user}","gists_url":"https://api.github.com/users/liveHarshit/gists{/gist_id}","starred_url":"https://api.github.com/users/liveHarshit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liveHarshit/subscriptions","organizations_url":"https://api.github.com/users/liveHarshit/orgs","repos_url":"https://api.github.com/users/liveHarshit/repos","events_url":"https://api.github.com/users/liveHarshit/events{/privacy}","received_events_url":"https://api.github.com/users/liveHarshit/received_events","type":"User","site_admin":false},"repo":{"id":149141312,"node_id":"MDEwOlJlcG9zaXRvcnkxNDkxNDEzMTI=","name":"open-event-android","full_name":"liveHarshit/open-event-android","private":false,"owner":{"login":"liveHarshit","id":27783786,"node_id":"MDQ6VXNlcjI3NzgzNzg2","avatar_url":"https://avatars1.githubusercontent.com/u/27783786?v=4","gravatar_id":"","url":"https://api.github.com/users/liveHarshit","html_url":"https://github.com/liveHarshit","followers_url":"https://api.github.com/users/liveHarshit/followers","following_url":"https://api.github.com/users/liveHarshit/following{/other_user}","gists_url":"https://api.github.com/users/liveHarshit/gists{/gist_id}","starred_url":"https://api.github.com/users/liveHarshit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liveHarshit/subscriptions","organizations_url":"https://api.github.com/users/liveHarshit/orgs","repos_url":"https://api.github.com/users/liveHarshit/repos","events_url":"https://api.github.com/users/liveHarshit/events{/privacy}","received_events_url":"https://api.github.com/users/liveHarshit/received_events","type":"User","site_admin":false},"html_url":"https://github.com/liveHarshit/open-event-android","description":"Open Event Android General App https://github.com/fossasia/open-event-android/blob/apk/app-debug.apk","fork":true,"url":"https://api.github.com/repos/liveHarshit/open-event-android","forks_url":"https://api.github.com/repos/liveHarshit/open-event-android/forks","keys_url":"https://api.github.com/repos/liveHarshit/open-event-android/keys{/key_id}","collaborators_url":"https://api.github.com/repos/liveHarshit/open-event-android/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/liveHarshit/open-event-android/teams","hooks_url":"https://api.github.com/repos/liveHarshit/open-event-android/hooks","issue_events_url":"https://api.github.com/repos/liveHarshit/open-event-android/issues/events{/number}","events_url":"https://api.github.com/repos/liveHarshit/open-event-android/events","assignees_url":"https://api.github.com/repos/liveHarshit/open-event-android/assignees{/user}","branches_url":"https://api.github.com/repos/liveHarshit/open-event-android/branches{/branch}","tags_url":"https://api.github.com/repos/liveHarshit/open-event-android/tags","blobs_url":"https://api.github.com/repos/liveHarshit/open-event-android/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/liveHarshit/open-event-android/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/liveHarshit/open-event-android/git/refs{/sha}","trees_url":"https://api.github.com/repos/liveHarshit/open-event-android/git/trees{/sha}","statuses_url":"https://api.github.com/repos/liveHarshit/open-event-android/statuses/{sha}","languages_url":"https://api.github.com/repos/liveHarshit/open-event-android/languages","stargazers_url":"https://api.github.com/repos/liveHarshit/open-event-android/stargazers","contributors_url":"https://api.github.com/repos/liveHarshit/open-event-android/contributors","subscribers_url":"https://api.github.com/repos/liveHarshit/open-event-android/subscribers","subscription_url":"https://api.github.com/repos/liveHarshit/open-event-android/subscription","commits_url":"https://api.github.com/repos/liveHarshit/open-event-android/commits{/sha}","git_commits_url":"https://api.github.com/repos/liveHarshit/open-event-android/git/commits{/sha}","comments_url":"https://api.github.com/repos/liveHarshit/open-event-android/comments{/number}","issue_comment_url":"https://api.github.com/repos/liveHarshit/open-event-android/issues/comments{/number}","contents_url":"https://api.github.com/repos/liveHarshit/open-event-android/contents/{+path}","compare_url":"https://api.github.com/repos/liveHarshit/open-event-android/compare/{base}...{head}","merges_url":"https://api.github.com/repos/liveHarshit/open-event-android/merges","archive_url":"https://api.github.com/repos/liveHarshit/open-event-android/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/liveHarshit/open-event-android/downloads","issues_url":"https://api.github.com/repos/liveHarshit/open-event-android/issues{/number}","pulls_url":"https://api.github.com/repos/liveHarshit/open-event-android/pulls{/number}","milestones_url":"https://api.github.com/repos/liveHarshit/open-event-android/milestones{/number}","notifications_url":"https://api.github.com/repos/liveHarshit/open-event-android/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/liveHarshit/open-event-android/labels{/name}","releases_url":"https://api.github.com/repos/liveHarshit/open-event-android/releases{/id}","deployments_url":"https://api.github.com/repos/liveHarshit/open-event-android/deployments","created_at":"2018-09-17T14:50:05Z","updated_at":"2018-12-08T13:50:37Z","pushed_at":"2018-12-21T05:06:21Z","git_url":"git://github.com/liveHarshit/open-event-android.git","ssh_url":"git@github.com:liveHarshit/open-event-android.git","clone_url":"https://github.com/liveHarshit/open-event-android.git","svn_url":"https://github.com/liveHarshit/open-event-android","homepage":"","size":35281,"stargazers_count":0,"watchers_count":0,"language":"Kotlin","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"development"}},"base":{"label":"fossasia:development","ref":"development","sha":"50b7c504b4d5958302344c3f57ff6375dd5d48b2","user":{"login":"fossasia","id":6295529,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYyOTU1Mjk=","avatar_url":"https://avatars3.githubusercontent.com/u/6295529?v=4","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":34847604,"node_id":"MDEwOlJlcG9zaXRvcnkzNDg0NzYwNA==","name":"open-event-android","full_name":"fossasia/open-event-android","private":false,"owner":{"login":"fossasia","id":6295529,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYyOTU1Mjk=","avatar_url":"https://avatars3.githubusercontent.com/u/6295529?v=4","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},"html_url":"https://github.com/fossasia/open-event-android","description":"Open Event Android General App https://github.com/fossasia/open-event-android/blob/apk/open-event-dev-app-playStore-debug.apk","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-04-30T09:59:35Z","updated_at":"2018-12-20T14:59:33Z","pushed_at":"2018-12-21T05:06:22Z","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":"","size":35923,"stargazers_count":862,"watchers_count":862,"language":"Kotlin","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":147,"mirror_url":null,"archived":false,"open_issues_count":51,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":147,"open_issues":51,"watchers":862,"default_branch":"development"}},"_links":{"self":{"href":"https://api.github.com/repos/fossasia/open-event-android/pulls/748"},"html":{"href":"https://github.com/fossasia/open-event-android/pull/748"},"issue":{"href":"https://api.github.com/repos/fossasia/open-event-android/issues/748"},"comments":{"href":"https://api.github.com/repos/fossasia/open-event-android/issues/748/comments"},"review_comments":{"href":"https://api.github.com/repos/fossasia/open-event-android/pulls/748/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/748/commits"},"statuses":{"href":"https://api.github.com/repos/fossasia/open-event-android/statuses/a1797de213d1cfec888f538985317d0c83e97138"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"liveHarshit"}}