{"action":"closed","issue":{"url":"https://api.github.com/repos/fossasia/open-event-android/issues/723","repository_url":"https://api.github.com/repos/fossasia/open-event-android","labels_url":"https://api.github.com/repos/fossasia/open-event-android/issues/723/labels{/name}","comments_url":"https://api.github.com/repos/fossasia/open-event-android/issues/723/comments","events_url":"https://api.github.com/repos/fossasia/open-event-android/issues/723/events","html_url":"https://github.com/fossasia/open-event-android/issues/723","id":182585823,"number":723,"title":"[Improvement] android.R.id.home should be defined in BaseActivity","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},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-12T17:31:53Z","updated_at":"2016-10-12T20:33:18Z","closed_at":"2016-10-12T20:33:18Z","body":"Below code is a redundant code in activity and it should be written in BaseActivity only.\r\n\r\n```\r\n    @Override\r\n    public boolean onOptionsItemSelected(MenuItem item) {\r\n        switch (item.getItemId()) {\r\n            case android.R.id.home:\r\n                onBackPressed();\r\n        }\r\n        return super.onOptionsItemSelected(item);\r\n    }\r\n```\r\n\r\nP.S. I have already written code, sending a PR soon :)\r\n"}}
{"actor":{"display_login":"the-dagger"}}