{"action":"created","issue":{"url":"https://api.github.com/repos/mikepenz/MaterialDrawer/issues/1385","repository_url":"https://api.github.com/repos/mikepenz/MaterialDrawer","labels_url":"https://api.github.com/repos/mikepenz/MaterialDrawer/issues/1385/labels{/name}","comments_url":"https://api.github.com/repos/mikepenz/MaterialDrawer/issues/1385/comments","events_url":"https://api.github.com/repos/mikepenz/MaterialDrawer/issues/1385/events","html_url":"https://github.com/mikepenz/MaterialDrawer/issues/1385","id":165036106,"number":1385,"title":"Is it possible to use the same Drawer object in different activities?","user":{"login":"acosti","id":12110466,"avatar_url":"https://avatars.githubusercontent.com/u/12110466?v=3","gravatar_id":"","url":"https://api.github.com/users/acosti","html_url":"https://github.com/acosti","followers_url":"https://api.github.com/users/acosti/followers","following_url":"https://api.github.com/users/acosti/following{/other_user}","gists_url":"https://api.github.com/users/acosti/gists{/gist_id}","starred_url":"https://api.github.com/users/acosti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acosti/subscriptions","organizations_url":"https://api.github.com/users/acosti/orgs","repos_url":"https://api.github.com/users/acosti/repos","events_url":"https://api.github.com/users/acosti/events{/privacy}","received_events_url":"https://api.github.com/users/acosti/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mikepenz/MaterialDrawer/labels/invalid","name":"invalid","color":"e6e6e6"}],"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},"assignees":[{"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":2,"created_at":"2016-07-12T09:42:50Z","updated_at":"2016-07-12T12:54:02Z","closed_at":null,"body":"Hello,\r\n\r\nI'm getting an error if I attempt to hold the Drawer object and display it more than once.\r\nIs it possible, for performance considerations, to create exactly one (static) Drawer and use it in other activities?\r\nI realize the best-practice would be doing one activity with fragments, but this is not the case.\r\n\r\nThanks\r\nA Costi"},"comment":{"url":"https://api.github.com/repos/mikepenz/MaterialDrawer/issues/comments/232038133","html_url":"https://github.com/mikepenz/MaterialDrawer/issues/1385#issuecomment-232038133","issue_url":"https://api.github.com/repos/mikepenz/MaterialDrawer/issues/1385","id":232038133,"user":{"login":"acosti","id":12110466,"avatar_url":"https://avatars.githubusercontent.com/u/12110466?v=3","gravatar_id":"","url":"https://api.github.com/users/acosti","html_url":"https://github.com/acosti","followers_url":"https://api.github.com/users/acosti/followers","following_url":"https://api.github.com/users/acosti/following{/other_user}","gists_url":"https://api.github.com/users/acosti/gists{/gist_id}","starred_url":"https://api.github.com/users/acosti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/acosti/subscriptions","organizations_url":"https://api.github.com/users/acosti/orgs","repos_url":"https://api.github.com/users/acosti/repos","events_url":"https://api.github.com/users/acosti/events{/privacy}","received_events_url":"https://api.github.com/users/acosti/received_events","type":"User","site_admin":false},"created_at":"2016-07-12T12:54:02Z","updated_at":"2016-07-12T12:54:02Z","body":"Ok, so my question would be:\r\nIs there a way for said helper class to only create the drawer once, but .build() it multiple times at different stages of the app?\r\n\r\nThe rational stems from the fact that it is not cheap for me to create the drawer, as it is highly customized and interacts with various other components of the app. So recreating it each time from scratch would be suicidal in terms of performance."}}
{"actor":{"display_login":"acosti"}}