{"action":"created","issue":{"url":"https://api.github.com/repos/mapbox/mapbox-navigation-android/issues/623","repository_url":"https://api.github.com/repos/mapbox/mapbox-navigation-android","labels_url":"https://api.github.com/repos/mapbox/mapbox-navigation-android/issues/623/labels{/name}","comments_url":"https://api.github.com/repos/mapbox/mapbox-navigation-android/issues/623/comments","events_url":"https://api.github.com/repos/mapbox/mapbox-navigation-android/issues/623/events","html_url":"https://github.com/mapbox/mapbox-navigation-android/issues/623","id":285387095,"node_id":"MDU6SXNzdWUyODUzODcwOTU=","number":623,"title":"NavigationView compatibility with Fragment","user":{"login":"m-harisqurashi","id":12873592,"node_id":"MDQ6VXNlcjEyODczNTky","avatar_url":"https://avatars3.githubusercontent.com/u/12873592?v=4","gravatar_id":"","url":"https://api.github.com/users/m-harisqurashi","html_url":"https://github.com/m-harisqurashi","followers_url":"https://api.github.com/users/m-harisqurashi/followers","following_url":"https://api.github.com/users/m-harisqurashi/following{/other_user}","gists_url":"https://api.github.com/users/m-harisqurashi/gists{/gist_id}","starred_url":"https://api.github.com/users/m-harisqurashi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/m-harisqurashi/subscriptions","organizations_url":"https://api.github.com/users/m-harisqurashi/orgs","repos_url":"https://api.github.com/users/m-harisqurashi/repos","events_url":"https://api.github.com/users/m-harisqurashi/events{/privacy}","received_events_url":"https://api.github.com/users/m-harisqurashi/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2018-01-02T09:35:16Z","updated_at":"2018-09-12T13:05:53Z","closed_at":"2018-01-11T19:58:47Z","author_association":"NONE","body":"[NavigationView ](https://www.mapbox.com/android-docs/navigation/overview/navigation-ui/#navigationview)needs `onCreate`, `onBackPressedand ` and `onRestoreInstanceState` which doesn't allowed inside fragment implementation. As far as i understand given example is for activity only but for fragment we are unable to use NavigationView life cycle methods.\r\n\r\nAs we can not call `navigationView.onCreate` inside Fragment's `onCreate `can we use `navigationView.onCreate(null)` inside `onCreateView` or `onViewCreated `but what about `onBackPressedand` `onRestoreInstanceState `in fragment."},"comment":{"url":"https://api.github.com/repos/mapbox/mapbox-navigation-android/issues/comments/420640816","html_url":"https://github.com/mapbox/mapbox-navigation-android/issues/623#issuecomment-420640816","issue_url":"https://api.github.com/repos/mapbox/mapbox-navigation-android/issues/623","id":420640816,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMDY0MDgxNg==","user":{"login":"hussi1","id":17702218,"node_id":"MDQ6VXNlcjE3NzAyMjE4","avatar_url":"https://avatars1.githubusercontent.com/u/17702218?v=4","gravatar_id":"","url":"https://api.github.com/users/hussi1","html_url":"https://github.com/hussi1","followers_url":"https://api.github.com/users/hussi1/followers","following_url":"https://api.github.com/users/hussi1/following{/other_user}","gists_url":"https://api.github.com/users/hussi1/gists{/gist_id}","starred_url":"https://api.github.com/users/hussi1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hussi1/subscriptions","organizations_url":"https://api.github.com/users/hussi1/orgs","repos_url":"https://api.github.com/users/hussi1/repos","events_url":"https://api.github.com/users/hussi1/events{/privacy}","received_events_url":"https://api.github.com/users/hussi1/received_events","type":"User","site_admin":false},"created_at":"2018-09-12T13:05:53Z","updated_at":"2018-09-12T13:05:53Z","author_association":"NONE","body":"Is onDestroy added for fragment ?"}}
{"actor":{"display_login":"hussi1"}}