{"action":"opened","issue":{"url":"https://api.github.com/repos/bluelinelabs/Conductor/issues/187","repository_url":"https://api.github.com/repos/bluelinelabs/Conductor","labels_url":"https://api.github.com/repos/bluelinelabs/Conductor/issues/187/labels{/name}","comments_url":"https://api.github.com/repos/bluelinelabs/Conductor/issues/187/comments","events_url":"https://api.github.com/repos/bluelinelabs/Conductor/issues/187/events","html_url":"https://github.com/bluelinelabs/Conductor/issues/187","id":196740881,"number":187,"title":"Router in ControllerPagerAdapter","user":{"login":"nomisRev","id":12424668,"avatar_url":"https://avatars.githubusercontent.com/u/12424668?v=3","gravatar_id":"","url":"https://api.github.com/users/nomisRev","html_url":"https://github.com/nomisRev","followers_url":"https://api.github.com/users/nomisRev/followers","following_url":"https://api.github.com/users/nomisRev/following{/other_user}","gists_url":"https://api.github.com/users/nomisRev/gists{/gist_id}","starred_url":"https://api.github.com/users/nomisRev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nomisRev/subscriptions","organizations_url":"https://api.github.com/users/nomisRev/orgs","repos_url":"https://api.github.com/users/nomisRev/repos","events_url":"https://api.github.com/users/nomisRev/events{/privacy}","received_events_url":"https://api.github.com/users/nomisRev/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-20T18:08:48Z","updated_at":"2016-12-20T18:08:48Z","closed_at":null,"body":"I have a Activity, with a ControllerPagerAdapter that hosts 3 controllers.\r\n\r\nIf I call `getRouter()` from within one of the hosted controllers, it doesn't return the \"root\" controller that I expected from my activity. Instead it returns a router with as container, the container the current controller resides in. (I hope that make sense)\r\n\r\nSo if I have MainActivity that hosts a ControllerPagerAdapter with ControllerA, ControllerB, and ControllerC. And ControllerA calls `getRouter` it returns a Router with as container \"ViewPager\". But what I actually expected was the get the router from MainActivity with as container ChangeHandlerFrameLayout where my ControllerPagerAdapter lives within.\r\n\r\nIs this expected behaviour? And is that why the `RouterPagerAdapter.java` was introduced? Because this is a big issue in my app atm, and I'd need to resort to some dirty coding to work around it. I'd rather write a custom `ControllerPagerAdapter` than resort to dirty coding.\r\n\r\nAny tips?"}}
{"actor":{"display_login":"nomisRev"}}