{"action":"created","issue":{"url":"https://api.github.com/repos/bluelinelabs/Conductor/issues/185","repository_url":"https://api.github.com/repos/bluelinelabs/Conductor","labels_url":"https://api.github.com/repos/bluelinelabs/Conductor/issues/185/labels{/name}","comments_url":"https://api.github.com/repos/bluelinelabs/Conductor/issues/185/comments","events_url":"https://api.github.com/repos/bluelinelabs/Conductor/issues/185/events","html_url":"https://github.com/bluelinelabs/Conductor/issues/185","id":195526791,"number":185,"title":"onSaveViewState is not calling for the first push another controller","user":{"login":"fAns1k","id":4946753,"avatar_url":"https://avatars.githubusercontent.com/u/4946753?v=3","gravatar_id":"","url":"https://api.github.com/users/fAns1k","html_url":"https://github.com/fAns1k","followers_url":"https://api.github.com/users/fAns1k/followers","following_url":"https://api.github.com/users/fAns1k/following{/other_user}","gists_url":"https://api.github.com/users/fAns1k/gists{/gist_id}","starred_url":"https://api.github.com/users/fAns1k/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fAns1k/subscriptions","organizations_url":"https://api.github.com/users/fAns1k/orgs","repos_url":"https://api.github.com/users/fAns1k/repos","events_url":"https://api.github.com/users/fAns1k/events{/privacy}","received_events_url":"https://api.github.com/users/fAns1k/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-14T13:10:07Z","updated_at":"2016-12-15T09:38:28Z","closed_at":null,"body":"i have a root controller that is call `onSaveViewState` when it shows for the first time.\r\nthat's because lib `LifecycleHandler` calls `onActivitySaveInstanceState` in `ActivityHostedRouter`, so my root contoller has flag `hasSavedViewState` as true.\r\n\r\nAnd when i try to push another controller above of the original one - method `onSaveViewState` is not called, because of condition below\r\n\r\n`Controller`\r\n```\r\nif (!isBeingDestroyed && !hasSavedViewState) {\r\n                saveViewState(view);\r\n           }\r\n```"},"comment":{"url":"https://api.github.com/repos/bluelinelabs/Conductor/issues/comments/267283055","html_url":"https://github.com/bluelinelabs/Conductor/issues/185#issuecomment-267283055","issue_url":"https://api.github.com/repos/bluelinelabs/Conductor/issues/185","id":267283055,"user":{"login":"fAns1k","id":4946753,"avatar_url":"https://avatars.githubusercontent.com/u/4946753?v=3","gravatar_id":"","url":"https://api.github.com/users/fAns1k","html_url":"https://github.com/fAns1k","followers_url":"https://api.github.com/users/fAns1k/followers","following_url":"https://api.github.com/users/fAns1k/following{/other_user}","gists_url":"https://api.github.com/users/fAns1k/gists{/gist_id}","starred_url":"https://api.github.com/users/fAns1k/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fAns1k/subscriptions","organizations_url":"https://api.github.com/users/fAns1k/orgs","repos_url":"https://api.github.com/users/fAns1k/repos","events_url":"https://api.github.com/users/fAns1k/events{/privacy}","received_events_url":"https://api.github.com/users/fAns1k/received_events","type":"User","site_admin":false},"created_at":"2016-12-15T09:38:28Z","updated_at":"2016-12-15T09:38:28Z","body":"i debugged it deeper - and it seems that it comes up when i use android 23+ permission request and permission request dialog shows up, so activity turns into \"PAUSE\" state."}}
{"actor":{"display_login":"fAns1k"}}