title: Update source activity before exit transition
body: <p><a href="https://i.stack.imgur.com/H0g4g.gif" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/H0g4g.gif" alt="enter image description here"></a></p>
  
  <p>I need help about transition between activities:</p>
  
  <p>I have two activities A and B and both have a ViewPager with the same image list. Every page has an ImageView with the <code>transitionName</code> equals to ​​​​​​​​<strong>image_x</strong>​​​​ where​​​​​​​​ <strong>x</strong> is the page index.</p>
  
  <p>A starts activity B calling <code>ActivityOptionsCompat.makeSceneTransitionAnimation</code> and the enter transition is totally fine.</p>
  
  <p>The problem is the following: when I close activity B, the exit transition does not initialize the view pager of activity A at the same position of B.</p>
  
  <p>When user closes B, the latter sets the current page position in the result. In <code>onActivityResult</code> of activity A, I call the <code>setCurrentItem</code> and the behavior is showed in the gif.</p>
  
  <p>Is there a way to update activity A before the exit transition starts?</p>