{"action":"created","issue":{"url":"https://api.github.com/repos/mikepenz/MaterialDrawer/issues/76","labels_url":"https://api.github.com/repos/mikepenz/MaterialDrawer/issues/76/labels{/name}","comments_url":"https://api.github.com/repos/mikepenz/MaterialDrawer/issues/76/comments","events_url":"https://api.github.com/repos/mikepenz/MaterialDrawer/issues/76/events","html_url":"https://github.com/mikepenz/MaterialDrawer/issues/76","id":60272437,"number":76,"title":"setNavigationOnClickListener avoids calling onOptionsItemSelect on drawers with toolbars","user":{"login":"gpulido","id":1540727,"avatar_url":"https://avatars.githubusercontent.com/u/1540727?v=3","gravatar_id":"","url":"https://api.github.com/users/gpulido","html_url":"https://github.com/gpulido","followers_url":"https://api.github.com/users/gpulido/followers","following_url":"https://api.github.com/users/gpulido/following{/other_user}","gists_url":"https://api.github.com/users/gpulido/gists{/gist_id}","starred_url":"https://api.github.com/users/gpulido/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gpulido/subscriptions","organizations_url":"https://api.github.com/users/gpulido/orgs","repos_url":"https://api.github.com/users/gpulido/repos","events_url":"https://api.github.com/users/gpulido/events{/privacy}","received_events_url":"https://api.github.com/users/gpulido/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mikepenz/MaterialDrawer/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":{"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},"milestone":null,"comments":10,"created_at":"2015-03-08T19:41:14Z","updated_at":"2015-03-11T18:53:49Z","closed_at":null,"body":"Hello,\r\nOn the last version the drawer handles the setNavigationOnclickListener by itself, the problem is that the \"drawer open or closed\" is called even if the setDrawerIndicatorEnabled is set to false. As the click on the navigation is \"catched\" then the onOptionsItemSelect on the activity is not called anymore.\r\n\r\nThe use case is an Activity that has a first Fragment A on which you want to show the drawertoggle and use the drawer, but when you change the Fragment for Fragment B, you only want to show the \"back\" button and catch its click to go back.\r\n\r\nI'm trying to \"know\" that the toggle is inactive using this code:\r\n\r\n```Java\r\nthis.mToolbar.setNavigationOnClickListener(new View.OnClickListener() {\r\n                @Override\r\n                public void onClick(View v) {\r\n                    //if the drawerToggle is disabled, fall off to the home button action\r\n                    if (!mActionBarDrawerToggle.isDrawerIndicatorEnabled())\r\n                    {\r\n                          //WHAT TO PUT HERE?\r\n                    }\r\n                    else {\r\n                        if (mDrawerLayout.isDrawerOpen(mSliderLayout)) {\r\n                            mDrawerLayout.closeDrawer(mSliderLayout);\r\n                        } else {\r\n                            mDrawerLayout.openDrawer(mSliderLayout);\r\n                        }\r\n                    }\r\n\r\n                }\r\n            });\r\n```\r\nIf I could find what to put on the if to \"call the normal behavior without listener\" would be great as this would not interfere with all the structure. But I don't know what to call there.\r\n\r\nAny idea?\r\n"},"comment":{"url":"https://api.github.com/repos/mikepenz/MaterialDrawer/issues/comments/78345181","html_url":"https://github.com/mikepenz/MaterialDrawer/issues/76#issuecomment-78345181","issue_url":"https://api.github.com/repos/mikepenz/MaterialDrawer/issues/76","id":78345181,"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-03-11T18:53:49Z","updated_at":"2015-03-11T18:53:49Z","body":"@gpulido sounds interesting :)"}}