This function is called when the app is opened again after the intent was sent. You can use it to for example update duration and position.