{"action":"created","issue":{"url":"https://api.github.com/repos/mapbox/mapbox-navigation-android/issues/253","repository_url":"https://api.github.com/repos/mapbox/mapbox-navigation-android","labels_url":"https://api.github.com/repos/mapbox/mapbox-navigation-android/issues/253/labels{/name}","comments_url":"https://api.github.com/repos/mapbox/mapbox-navigation-android/issues/253/comments","events_url":"https://api.github.com/repos/mapbox/mapbox-navigation-android/issues/253/events","html_url":"https://github.com/mapbox/mapbox-navigation-android/issues/253","id":259382058,"number":253,"title":"Session state total distance update reset prematurely","user":{"login":"ericrwolfe","id":664805,"avatar_url":"https://avatars3.githubusercontent.com/u/664805?v=4","gravatar_id":"","url":"https://api.github.com/users/ericrwolfe","html_url":"https://github.com/ericrwolfe","followers_url":"https://api.github.com/users/ericrwolfe/followers","following_url":"https://api.github.com/users/ericrwolfe/following{/other_user}","gists_url":"https://api.github.com/users/ericrwolfe/gists{/gist_id}","starred_url":"https://api.github.com/users/ericrwolfe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericrwolfe/subscriptions","organizations_url":"https://api.github.com/users/ericrwolfe/orgs","repos_url":"https://api.github.com/users/ericrwolfe/repos","events_url":"https://api.github.com/users/ericrwolfe/events{/privacy}","received_events_url":"https://api.github.com/users/ericrwolfe/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-09-21T05:48:01Z","updated_at":"2017-09-22T18:16:25Z","closed_at":"2017-09-22T18:16:25Z","author_association":"CONTRIBUTOR","body":"@cammace It looks like the session state distance update happens after the route progress is reset to 0 distance completed.\r\n\r\nhttps://github.com/mapbox/mapbox-navigation-android/blob/7aed54217bd244b4e8a7ad450a6cdb35b0aeae52/navigation/libandroid-navigation/src/main/java/com/mapbox/services/android/navigation/v5/navigation/NavigationEngine.java#L99-L112\r\n\r\nThe distance updates should be moved before the route progress is reset, and there should also be a check for a null previous route progress before updating the distance."},"comment":{"url":"https://api.github.com/repos/mapbox/mapbox-navigation-android/issues/comments/331522525","html_url":"https://github.com/mapbox/mapbox-navigation-android/issues/253#issuecomment-331522525","issue_url":"https://api.github.com/repos/mapbox/mapbox-navigation-android/issues/253","id":331522525,"user":{"login":"ericrwolfe","id":664805,"avatar_url":"https://avatars3.githubusercontent.com/u/664805?v=4","gravatar_id":"","url":"https://api.github.com/users/ericrwolfe","html_url":"https://github.com/ericrwolfe","followers_url":"https://api.github.com/users/ericrwolfe/followers","following_url":"https://api.github.com/users/ericrwolfe/following{/other_user}","gists_url":"https://api.github.com/users/ericrwolfe/gists{/gist_id}","starred_url":"https://api.github.com/users/ericrwolfe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericrwolfe/subscriptions","organizations_url":"https://api.github.com/users/ericrwolfe/orgs","repos_url":"https://api.github.com/users/ericrwolfe/repos","events_url":"https://api.github.com/users/ericrwolfe/events{/privacy}","received_events_url":"https://api.github.com/users/ericrwolfe/received_events","type":"User","site_admin":false},"created_at":"2017-09-22T18:16:25Z","updated_at":"2017-09-22T18:16:25Z","author_association":"CONTRIBUTOR","body":"Fixed in https://github.com/mapbox/mapbox-navigation-android/pull/260"}}
{"actor":{"display_login":"ericrwolfe"}}