{"action":"created","issue":{"url":"https://api.github.com/repos/mikepenz/MaterialDrawer/issues/391","labels_url":"https://api.github.com/repos/mikepenz/MaterialDrawer/issues/391/labels{/name}","comments_url":"https://api.github.com/repos/mikepenz/MaterialDrawer/issues/391/comments","events_url":"https://api.github.com/repos/mikepenz/MaterialDrawer/issues/391/events","html_url":"https://github.com/mikepenz/MaterialDrawer/issues/391","id":85141719,"number":391,"title":"How to override the function of the navigation button?","user":{"login":"RadicalMonkey","id":3177001,"avatar_url":"https://avatars.githubusercontent.com/u/3177001?v=3","gravatar_id":"","url":"https://api.github.com/users/RadicalMonkey","html_url":"https://github.com/RadicalMonkey","followers_url":"https://api.github.com/users/RadicalMonkey/followers","following_url":"https://api.github.com/users/RadicalMonkey/following{/other_user}","gists_url":"https://api.github.com/users/RadicalMonkey/gists{/gist_id}","starred_url":"https://api.github.com/users/RadicalMonkey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RadicalMonkey/subscriptions","organizations_url":"https://api.github.com/users/RadicalMonkey/orgs","repos_url":"https://api.github.com/users/RadicalMonkey/repos","events_url":"https://api.github.com/users/RadicalMonkey/events{/privacy}","received_events_url":"https://api.github.com/users/RadicalMonkey/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-04T15:14:49Z","updated_at":"2015-06-04T15:20:40Z","closed_at":null,"body":"I made the navigation button a back arrow using \r\n```java\r\ndrawer.getActionBarDrawerToggle().setDrawerIndicatorEnabled(false);       \r\ngetSupportActionBar().setDisplayHomeAsUpEnabled(true);\r\n```\r\n\r\nI've also set the following listener:\r\n```java\r\ndrawer.getActionBarDrawerToggle().setToolbarNavigationClickListener(new View.OnClickListener() {\r\n            @Override\r\n            public void onClick(View v) {\r\n                onBackPressed();\r\n            }\r\n        });\r\n```\r\n\r\nHowever pressing the navigation button still opens the drawer. How can get it to close the activity?\r\nThis was working fine in 3.0.5"},"comment":{"url":"https://api.github.com/repos/mikepenz/MaterialDrawer/issues/comments/108933143","html_url":"https://github.com/mikepenz/MaterialDrawer/issues/391#issuecomment-108933143","issue_url":"https://api.github.com/repos/mikepenz/MaterialDrawer/issues/391","id":108933143,"user":{"login":"mikepenz","id":1476232,"avatar_url":"https://avatars.githubusercontent.com/u/1476232?v=3","gravatar_id":"","url":"https://api.github.com/users/mikepenz","html_url":"https://github.com/mikepenz","followers_url":"https://api.github.com/users/mikepenz/followers","following_url":"https://api.github.com/users/mikepenz/following{/other_user}","gists_url":"https://api.github.com/users/mikepenz/gists{/gist_id}","starred_url":"https://api.github.com/users/mikepenz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mikepenz/subscriptions","organizations_url":"https://api.github.com/users/mikepenz/orgs","repos_url":"https://api.github.com/users/mikepenz/repos","events_url":"https://api.github.com/users/mikepenz/events{/privacy}","received_events_url":"https://api.github.com/users/mikepenz/received_events","type":"User","site_admin":false},"created_at":"2015-06-04T15:20:40Z","updated_at":"2015-06-04T15:20:40Z","body":"provide your own onNavigatioClickListener and return true if you have consumed the event. also check out the sample app there are a few different. I would recommend you check the ComplexHeader Drawer example"}}