{"action":"closed","issue":{"url":"https://api.github.com/repos/HeinrichReimer/material-drawer/issues/46","labels_url":"https://api.github.com/repos/HeinrichReimer/material-drawer/issues/46/labels{/name}","comments_url":"https://api.github.com/repos/HeinrichReimer/material-drawer/issues/46/comments","events_url":"https://api.github.com/repos/HeinrichReimer/material-drawer/issues/46/events","html_url":"https://github.com/HeinrichReimer/material-drawer/issues/46","id":59503303,"number":46,"title":"CloseDrawer Lag","user":{"login":"SoAddicted","id":1597206,"avatar_url":"https://avatars.githubusercontent.com/u/1597206?v=3","gravatar_id":"","url":"https://api.github.com/users/SoAddicted","html_url":"https://github.com/SoAddicted","followers_url":"https://api.github.com/users/SoAddicted/followers","following_url":"https://api.github.com/users/SoAddicted/following{/other_user}","gists_url":"https://api.github.com/users/SoAddicted/gists{/gist_id}","starred_url":"https://api.github.com/users/SoAddicted/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SoAddicted/subscriptions","organizations_url":"https://api.github.com/users/SoAddicted/orgs","repos_url":"https://api.github.com/users/SoAddicted/repos","events_url":"https://api.github.com/users/SoAddicted/events{/privacy}","received_events_url":"https://api.github.com/users/SoAddicted/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/HeinrichReimer/material-drawer/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/HeinrichReimer/material-drawer/labels/low%20priority","name":"low priority","color":"fbca04"},{"url":"https://api.github.com/repos/HeinrichReimer/material-drawer/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-02T16:18:53Z","updated_at":"2015-04-09T14:40:30Z","closed_at":"2015-04-09T14:40:30Z","body":"Hey, first of all thanks for this great library, I just have 2 small problems:\r\n\r\n- I start new activites in the OnItemClickListener for each item and want to close the drawer beforehand. Unfortunately the animation isnt finished when the new activity is started and it get stuck for a brief moment. Is it possible to \"wait\" for the animation to finish? I'm not sure if im doing something wrong, here is the code for one item:\r\n\r\n```java\r\n        drawer.addFixedItem(\r\n                new DrawerItem()\r\n                        .setImage(getResources().getDrawable(R.drawable.ic_format_line_spacing_grey600_48dp))\r\n                        .setTextPrimary(getString(R.string.drawer_sixth_item))\r\n                        .setTextSecondary(getString(R.string.drawer_sixth_description))\r\n                        .setOnItemClickListener(new DrawerItem.OnItemClickListener() {\r\n                            @Override\r\n                            public void onClick(DrawerItem drawerItem, int i, int position) {\r\n                                drawerLayout.closeDrawer(drawer);\r\n                                intent = new Intent(getApplicationContext(), Swipe.class);\r\n                                intent.putExtra(\"toGo\", 0);\r\n                                startActivity(intent);\r\n                            }\r\n                        })\r\n\r\n        );\r\n\r\n```\r\nWhat is a good practice to get the drawer in every fragment or activity? Right now I created a base class and let every activity extend it, is this a good idea?\r\n\r\n\r\n- Debug Log is getting spammed with methodcalls:\r\n```\r\n03-02 15:56:53.298  21730-21730/com.example D/DrawerView﹕ DrawerView()\r\n03-02 15:56:53.298  21730-21730/com.example D/DrawerView﹕ init()\r\n03-02 15:56:53.308  21730-21730/com.example D/DrawerView﹕ findViews()\r\n03-02 15:56:53.308  21730-21730/com.example D/DrawerView﹕ updateProfile()\r\n03-02 15:56:53.308  21730-21730/com.example D/DrawerView﹕ updateList()\r\n03-02 15:56:53.308  21730-21730/com.example D/DrawerView﹕ updateListSpacing()\r\n03-02 15:56:53.308  21730-21730/com.example D/DrawerView﹕ updateFixedList()\r\n03-02 15:56:53.308  21730-21730/com.example D/DrawerView﹕ updateListSpacing()\r\n03-02 15:56:53.318  21730-21730/com.example D/DrawerView﹕ updateProfile()\r\n03-02 15:56:53.318  21730-21730/com.example D/DrawerView﹕ updateFixedList()\r\n03-02 15:56:53.318  21730-21730/com.example D/DrawerView﹕ updateListSpacing()\r\n03-02 15:56:53.318  21730-21730/com.example D/DrawerView﹕ updateList()\r\n03-02 15:56:53.328  21730-21730/com.example D/DrawerView﹕ updateListSpacing()\r\n03-02 15:56:53.358  21730-21730/com.example D/DrawerView﹕ updateFixedList()\r\n03-02 15:56:53.358  21730-21730/com.example D/DrawerView﹕ updateListSpacing()\r\n03-02 15:56:53.378  21730-21730/com.example D/DrawerView﹕ updateList()\r\n03-02 15:56:53.378  21730-21730/com.example D/DrawerView﹕ updateListSpacing()\r\n03-02 15:56:53.418  21730-21730/com.example D/DrawerView﹕ updateFixedList()\r\n03-02 15:56:53.418  21730-21730/com.example D/DrawerView﹕ updateListSpacing()\r\n03-02 15:56:53.438  21730-21730/com.example D/DrawerView﹕ updateList()\r\n03-02 15:56:53.438  21730-21730/com.example D/DrawerView﹕ updateListSpacing()\r\n03-02 15:56:53.498  21730-21730/com.example D/DrawerView﹕ updateFixedList()\r\n03-02 15:56:53.498  21730-21730/com.example D/DrawerView﹕ updateListSpacing()\r\n03-02 15:56:53.568  21730-21730/com.example D/DrawerView﹕ updateFixedList()\r\n03-02 15:56:53.568  21730-21730/com.example D/DrawerView﹕ updateListSpacing()\r\n03-02 15:56:53.628  21730-21730/com.example D/DrawerView﹕ updateFixedList()\r\n03-02 15:56:53.628  21730-21730/com.example D/DrawerView﹕ updateListSpacing()\r\n```\r\n\r\n\r\nThanks for any help!"}}